diff --git a/frontend/src/stores/appearance.ts b/frontend/src/stores/appearance.ts index cc9edbaa..217f5d35 100644 --- a/frontend/src/stores/appearance.ts +++ b/frontend/src/stores/appearance.ts @@ -28,6 +28,8 @@ interface AppearanceState { name?: string foot?: string showSlogan?: string + pc_welcome?: string + pc_welcome_desc?: string footContent?: string loaded: boolean showDemoTips?: boolean @@ -66,6 +68,8 @@ export const useAppearanceStore = defineStore('appearanceStore', { showDemoTips: false, demoTipsContent: '', fontList: [], + pc_welcome: '', + pc_welcome_desc: '', } }, getters: { @@ -272,7 +276,6 @@ export const useAppearanceStore = defineStore('appearanceStore', { } )[item.pkey] = item.pval }) - this.navigate = data.navigate this.help = data.help this.showDoc = data.showDoc @@ -280,6 +283,8 @@ export const useAppearanceStore = defineStore('appearanceStore', { this.navigateBg = data.navigateBg this.themeColor = data.themeColor this.customColor = data.customColor + this.pc_welcome = data.pc_welcome + this.pc_welcome_desc = data.pc_welcome_desc const currentColor = this.themeColor === 'custom' && this.customColor ? this.customColor diff --git a/frontend/src/views/chat/index.vue b/frontend/src/views/chat/index.vue index bed88034..52c1bf2e 100644 --- a/frontend/src/views/chat/index.vue +++ b/frontend/src/views/chat/index.vue @@ -145,10 +145,10 @@ > - {{ t('qa.greeting') }} + {{ appearanceStore.pc_welcome }}
- {{ t('qa.hint_description') }} + {{ appearanceStore.pc_welcome_desc }}
diff --git a/frontend/src/views/system/appearance/index.vue b/frontend/src/views/system/appearance/index.vue index 3f5d8a36..42486648 100644 --- a/frontend/src/views/system/appearance/index.vue +++ b/frontend/src/views/system/appearance/index.vue @@ -164,7 +164,7 @@ +
+
+ + + + {{ topForm.pc_welcome }} +
+
+ {{ topForm.pc_welcome_desc }} +
+ + + + + + + {{ t('qa.start_sqlbot') }} + +
{{ @@ -212,6 +233,36 @@ false-value="1" :label="$t('system.show_about')" /> +
+ {{ $t('system.welcome_message') }} +
+
+ +
+
+ {{ $t('embedded.welcome_description') }} +
+
+ +
@@ -230,6 +281,7 @@