From 96332cd5eed5ecdead453027582895af5f0d6d5e Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Fri, 28 Nov 2025 10:12:03 +0800 Subject: [PATCH] fix(Appearance Settings): No default welcome message or description is provided. --- frontend/src/stores/appearance.ts | 4 ++-- frontend/src/views/chat/index.vue | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/stores/appearance.ts b/frontend/src/stores/appearance.ts index aaf11484..2093f300 100644 --- a/frontend/src/stores/appearance.ts +++ b/frontend/src/stores/appearance.ts @@ -67,8 +67,8 @@ export const useAppearanceStore = defineStore('appearanceStore', { showDemoTips: false, demoTipsContent: '', fontList: [], - pc_welcome: '', - pc_welcome_desc: '', + pc_welcome: undefined, + pc_welcome_desc: undefined, } }, getters: { diff --git a/frontend/src/views/chat/index.vue b/frontend/src/views/chat/index.vue index 944816c3..4133780e 100644 --- a/frontend/src/views/chat/index.vue +++ b/frontend/src/views/chat/index.vue @@ -145,10 +145,10 @@ > - {{ appearanceStore.pc_welcome }} + {{ appearanceStore.pc_welcome ?? t('qa.greeting') }}
- {{ appearanceStore.pc_welcome_desc }} + {{ appearanceStore.pc_welcome_desc ?? t('qa.hint_description') }}