From 0af80c2f1b29c29eb30a3684a4e8d47d14d2d80a Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Fri, 29 Aug 2025 13:52:44 +0800 Subject: [PATCH] feat(Appearance Settings): Empty the welcome message and still display the default welcome message --- frontend/src/i18n/en.json | 2 +- frontend/src/i18n/zh-CN.json | 2 +- frontend/src/stores/appearance.ts | 6 ++++++ frontend/src/views/login/index.vue | 3 ++- frontend/src/views/system/appearance/index.vue | 12 +++++++++++- 5 files changed, 21 insertions(+), 4 deletions(-) diff --git a/frontend/src/i18n/en.json b/frontend/src/i18n/en.json index 931630e5..95e911b4 100644 --- a/frontend/src/i18n/en.json +++ b/frontend/src/i18n/en.json @@ -634,7 +634,7 @@ "larger_than_5mb": "Background image on the left: Recommended size: 576 x 900 for vector images, 1152 x 1800 for bitmap images, supports JPG, PNG, and SVG, and no larger than 5MB", "website_name": "Website Name", "on_webpage_tabs": "Platform name displayed on webpage tabs", - "welcome_message": "Welcome Message", + "welcome_message": "Display a welcome message", "the_product_logo": "Welcome Message below the product logo", "screen_customization_supported": "Defaults to the SQLBot login screen; customization supported", "screen_customization_settings": "The default is the SQLBot platform interface, which supports custom settings", diff --git a/frontend/src/i18n/zh-CN.json b/frontend/src/i18n/zh-CN.json index 87e6913a..2a4e960a 100644 --- a/frontend/src/i18n/zh-CN.json +++ b/frontend/src/i18n/zh-CN.json @@ -634,7 +634,7 @@ "larger_than_5mb": "左侧背景图,矢量图建议尺寸 576*900,位图建议尺寸 1152*1800;支持 JPG、PNG、SVG,大小不超过 5M", "website_name": "网站名称", "on_webpage_tabs": "显示在网页 Tab 的平台名称", - "welcome_message": "欢迎语", + "welcome_message": "显示欢迎语", "the_product_logo": "产品 Logo 下的 欢迎语", "screen_customization_supported": "默认为 SQLBot 登录界面,支持自定义设置", "screen_customization_settings": "默认为 SQLBot 平台界面,支持自定义设置", diff --git a/frontend/src/stores/appearance.ts b/frontend/src/stores/appearance.ts index 1930f378..fdc0dfb1 100644 --- a/frontend/src/stores/appearance.ts +++ b/frontend/src/stores/appearance.ts @@ -27,6 +27,7 @@ interface AppearanceState { web?: string name?: string foot?: string + showSlogan?: string footContent?: string loaded: boolean showDemoTips?: boolean @@ -50,6 +51,7 @@ export const useAppearanceStore = defineStore('appearanceStore', { mobileLoginBg: '', help: '', showDoc: '0', + showSlogan: '0', showAi: '0', showCopilot: '0', showAbout: '0', @@ -145,6 +147,9 @@ export const useAppearanceStore = defineStore('appearanceStore', { getShowCopilot(): boolean { return isBtnShow(this.showCopilot!) }, + getShowSlogan(): boolean { + return isBtnShow(this.showSlogan!) + }, getShowDoc(): boolean { return isBtnShow(this.showDoc!) }, @@ -283,6 +288,7 @@ export const useAppearanceStore = defineStore('appearanceStore', { this.bg = data.bg this.login = data.login this.slogan = data.slogan + this.showSlogan = data.showSlogan this.web = data.web this.name = data.name if (this.name) { diff --git a/frontend/src/views/login/index.vue b/frontend/src/views/login/index.vue index 6a62efe3..ab46fabc 100644 --- a/frontend/src/views/login/index.vue +++ b/frontend/src/views/login/index.vue @@ -6,9 +6,10 @@