From 05e0fe30f909f2d96d803350f307e96ec850df9b Mon Sep 17 00:00:00 2001
From: dataeaseShu <106045316+dataeaseShu@users.noreply.github.com>
Date: Tue, 25 Nov 2025 13:55:04 +0800
Subject: [PATCH] feat(System Settings): Add a welcome message for users who
have questions in the system. (#483)
---
frontend/src/stores/appearance.ts | 7 +-
frontend/src/views/chat/index.vue | 4 +-
.../src/views/system/appearance/index.vue | 123 +++++++++++++++++-
3 files changed, 130 insertions(+), 4 deletions(-)
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 @@
>