From 257aa34118b568d25e089f3fc4c82aeb0fca3928 Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Thu, 22 Aug 2024 15:25:26 +0800 Subject: [PATCH] =?UTF-8?q?feat(xpack):=20=E6=94=AF=E6=8C=81=E7=A7=BB?= =?UTF-8?q?=E5=8A=A8=E7=AB=AF=E5=A4=96=E8=A7=82=E7=9A=84=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/store/modules/appearance.ts | 24 +++++++++++++++++ .../src/views/mobile/login/index.vue | 26 +++++++++++++++++-- 2 files changed, 48 insertions(+), 2 deletions(-) diff --git a/core/core-frontend/src/store/modules/appearance.ts b/core/core-frontend/src/store/modules/appearance.ts index 31c94c3f02..2333f02119 100644 --- a/core/core-frontend/src/store/modules/appearance.ts +++ b/core/core-frontend/src/store/modules/appearance.ts @@ -12,6 +12,8 @@ interface AppearanceState { customColor?: string navigateBg?: string navigate?: string + mobileLogin?: string + mobileLoginBg?: string help?: string showAi?: string showDoc?: string @@ -36,6 +38,8 @@ export const useAppearanceStore = defineStore('appearanceStore', { customColor: '', navigateBg: '', navigate: '', + mobileLogin: '', + mobileLoginBg: '', help: '', showDoc: '0', showAi: '0', @@ -60,6 +64,18 @@ export const useAppearanceStore = defineStore('appearanceStore', { } return null }, + getMobileLogin(): string { + if (this.mobileLogin) { + return baseUrl + this.mobileLogin + } + return null + }, + getMobileLoginBg(): string { + if (this.mobileLoginBg) { + return baseUrl + this.mobileLoginBg + } + return null + }, getHelp(): string { return this.help }, @@ -128,6 +144,12 @@ export const useAppearanceStore = defineStore('appearanceStore', { setNavigate(data: string) { this.navigate = data }, + setMobileLogin(data: string) { + this.mobileLogin = data + }, + setMobileLoginBg(data: string) { + this.mobileLoginBg = data + }, setHelp(data: string) { this.help = data }, @@ -177,6 +199,8 @@ export const useAppearanceStore = defineStore('appearanceStore', { return } this.navigate = data.navigate + this.mobileLogin = data.mobileLogin + this.mobileLoginBg = data.mobileLoginBg this.help = data.help this.showAi = data.showAi this.showDoc = data.showDoc diff --git a/core/core-frontend/src/views/mobile/login/index.vue b/core/core-frontend/src/views/mobile/login/index.vue index d9a23a5035..7068f39b5c 100644 --- a/core/core-frontend/src/views/mobile/login/index.vue +++ b/core/core-frontend/src/views/mobile/login/index.vue @@ -1,7 +1,9 @@