Skip to content

Commit dfbde70

Browse files
committed
fix(Appearance Settings): No default welcome message or description is provided.
1 parent e6c94ad commit dfbde70

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

frontend/src/stores/appearance.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ export const useAppearanceStore = defineStore('appearanceStore', {
6767
showDemoTips: false,
6868
demoTipsContent: '',
6969
fontList: [],
70-
pc_welcome: '',
71-
pc_welcome_desc: '',
70+
pc_welcome: undefined,
71+
pc_welcome_desc: undefined,
7272
}
7373
},
7474
getters: {

frontend/src/views/chat/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,10 @@
145145
><custom_small v-if="appearanceStore.themeColor !== 'default'"></custom_small>
146146
<LOGO_fold v-else></LOGO_fold
147147
></el-icon>
148-
{{ appearanceStore.pc_welcome }}
148+
{{ appearanceStore.pc_welcome ?? t('qa.greeting') }}
149149
</div>
150150
<div class="sub">
151-
{{ appearanceStore.pc_welcome_desc }}
151+
{{ appearanceStore.pc_welcome_desc ?? t('qa.hint_description') }}
152152
</div>
153153
</template>
154154

0 commit comments

Comments
 (0)