|
173 | 173 | <el-row class="w-full mb-8"> |
174 | 174 | <el-col :span="12"> |
175 | 175 | <h5 class="mb-8"> |
176 | | - {{ |
177 | | - $t('views.applicationOverview.SettingDisplayDialog.customThemeColor') |
178 | | - }} |
| 176 | + {{ $t('views.applicationOverview.SettingDisplayDialog.customThemeColor') }} |
179 | 177 | </h5> |
180 | 178 | <div> |
181 | 179 | <el-color-picker v-model="xpackForm.custom_theme.theme_color" /> |
|
188 | 186 | </el-col> |
189 | 187 | <el-col :span="12"> |
190 | 188 | <h5 class="mb-8"> |
191 | | - {{ |
192 | | - $t( |
193 | | - 'views.applicationOverview.SettingDisplayDialog.headerTitleFontColor', |
194 | | - ) |
195 | | - }} |
| 189 | + {{ $t('views.applicationOverview.SettingDisplayDialog.headerTitleFontColor') }} |
196 | 190 | </h5> |
197 | 191 | <el-color-picker v-model="xpackForm.custom_theme.header_font_color" /> |
198 | 192 | </el-col> |
|
259 | 253 | </span> |
260 | 254 | </div> |
261 | 255 | <el-text type="info" size="small"> |
262 | | - {{ |
263 | | - $t('views.applicationOverview.SettingDisplayDialog.chatBackgroundMessage') |
264 | | - }} |
| 256 | + {{ $t('views.applicationOverview.SettingDisplayDialog.chatBackgroundMessage') }} |
265 | 257 | </el-text> |
266 | 258 | </el-card> |
267 | 259 | <!-- AI回复头像 --> |
|
301 | 293 | }}</span> |
302 | 294 | <span class="flex align-center"> |
303 | 295 | <el-checkbox v-model="xpackForm.show_user_avatar"> |
304 | | - {{ |
305 | | - $t('views.applicationOverview.SettingDisplayDialog.display') |
306 | | - }}</el-checkbox |
| 296 | + {{ $t('views.applicationOverview.SettingDisplayDialog.display') }}</el-checkbox |
307 | 297 | > |
308 | 298 | <el-upload |
309 | 299 | class="ml-8" |
|
355 | 345 | }}</span> |
356 | 346 | <el-checkbox |
357 | 347 | v-model="xpackForm.draggable" |
358 | | - :label=" |
359 | | - $t('views.applicationOverview.SettingDisplayDialog.draggablePosition') |
360 | | - " |
| 348 | + :label="$t('views.applicationOverview.SettingDisplayDialog.draggablePosition')" |
361 | 349 | /> |
362 | 350 | </div> |
363 | 351 | <el-row :gutter="8" class="w-full mb-8"> |
|
366 | 354 | <el-select v-model="xpackForm.float_location.x.type" style="width: 80px"> |
367 | 355 | <el-option |
368 | 356 | :label=" |
369 | | - $t( |
370 | | - 'views.applicationOverview.SettingDisplayDialog.iconPosition.left', |
371 | | - ) |
| 357 | + $t('views.applicationOverview.SettingDisplayDialog.iconPosition.left') |
372 | 358 | " |
373 | 359 | value="left" |
374 | 360 | /> |
375 | 361 | <el-option |
376 | 362 | :label=" |
377 | | - $t( |
378 | | - 'views.applicationOverview.SettingDisplayDialog.iconPosition.right', |
379 | | - ) |
| 363 | + $t('views.applicationOverview.SettingDisplayDialog.iconPosition.right') |
380 | 364 | " |
381 | 365 | value="right" |
382 | 366 | /> |
|
398 | 382 | <el-select v-model="xpackForm.float_location.y.type" style="width: 80px"> |
399 | 383 | <el-option |
400 | 384 | :label=" |
401 | | - $t( |
402 | | - 'views.applicationOverview.SettingDisplayDialog.iconPosition.top', |
403 | | - ) |
| 385 | + $t('views.applicationOverview.SettingDisplayDialog.iconPosition.top') |
404 | 386 | " |
405 | 387 | value="top" |
406 | 388 | /> |
407 | 389 | <el-option |
408 | 390 | :label=" |
409 | | - $t( |
410 | | - 'views.applicationOverview.SettingDisplayDialog.iconPosition.bottom', |
411 | | - ) |
| 391 | + $t('views.applicationOverview.SettingDisplayDialog.iconPosition.bottom') |
412 | 392 | " |
413 | 393 | value="bottom" |
414 | 394 | /> |
|
432 | 412 | <el-space direction="vertical" alignment="start" :size="2"> |
433 | 413 | <el-checkbox |
434 | 414 | v-model="xpackForm.show_source" |
435 | | - :label=" |
436 | | - $t('views.applicationOverview.SettingDisplayDialog.showSourceLabel') |
437 | | - " |
| 415 | + :label="$t('views.applicationOverview.SettingDisplayDialog.showSourceLabel')" |
438 | 416 | /> |
439 | 417 | <el-checkbox |
440 | 418 | v-model="xpackForm.show_exec" |
441 | | - :label=" |
442 | | - $t('views.applicationOverview.SettingDisplayDialog.showExecutionDetail') |
443 | | - " |
| 419 | + :label="$t('views.applicationOverview.SettingDisplayDialog.showExecutionDetail')" |
444 | 420 | /> |
445 | 421 | <el-checkbox |
446 | 422 | v-model="xpackForm.show_history" |
|
450 | 426 | v-model="xpackForm.show_guide" |
451 | 427 | :label="$t('views.applicationOverview.SettingDisplayDialog.displayGuide')" |
452 | 428 | /> |
| 429 | + <el-checkbox |
| 430 | + v-model="xpackForm.show_share" |
| 431 | + :label="$t('views.applicationOverview.SettingDisplayDialog.share')" |
| 432 | + /> |
453 | 433 | <el-checkbox |
454 | 434 | v-model="xpackForm.disclaimer" |
455 | 435 | :label="$t('views.applicationOverview.SettingDisplayDialog.disclaimer')" |
@@ -512,6 +492,7 @@ const defaultSetting = { |
512 | 492 | show_history: true, |
513 | 493 | draggable: true, |
514 | 494 | show_guide: true, |
| 495 | + show_share: true, |
515 | 496 | icon: '', |
516 | 497 | icon_url: '', |
517 | 498 | chat_background: '', |
@@ -547,6 +528,7 @@ const xpackForm = ref<any>({ |
547 | 528 | show_history: true, |
548 | 529 | draggable: false, |
549 | 530 | show_guide: false, |
| 531 | + show_share: true, |
550 | 532 | chat_background: '', |
551 | 533 | chat_background_url: '', |
552 | 534 | avatar: '', |
@@ -621,6 +603,7 @@ const open = (data: any, content: any) => { |
621 | 603 | xpackForm.value.language = data.language |
622 | 604 | xpackForm.value.draggable = data.draggable |
623 | 605 | xpackForm.value.show_guide = data.show_guide |
| 606 | + xpackForm.value.show_share = data.show_share |
624 | 607 | imgUrl.value.avatar = data.avatar |
625 | 608 | imgUrl.value.icon = data.icon |
626 | 609 | imgUrl.value.chat_background = data.chat_background |
@@ -710,6 +693,7 @@ defineExpose({ open }) |
710 | 693 | overflow: hidden; |
711 | 694 | width: 330px; |
712 | 695 | height: 520px; |
| 696 | +
|
713 | 697 | .setting-preview-header { |
714 | 698 | background: var(--app-header-bg-color); |
715 | 699 | height: var(--app-header-height); |
|
0 commit comments