From 7c170a380fdc6fb7c858056dbade7650314d62e9 Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Wed, 15 May 2024 10:55:21 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=B5=8C=E5=85=A5=E5=BC=8F):=20=E5=B5=8C?= =?UTF-8?q?=E5=85=A5=E7=AC=AC=E4=B8=89=E6=96=B9=E7=B3=BB=E7=BB=9F=E5=90=8E?= =?UTF-8?q?=EF=BC=8C=E7=AC=AC=E4=B8=89=E6=96=B9=E7=B3=BB=E7=BB=9F=E7=9A=84?= =?UTF-8?q?=E7=BD=91=E7=AB=99=20Logo=E5=92=8C=E7=BD=91=E7=AB=99=E5=90=8D?= =?UTF-8?q?=E7=A7=B0=E8=A2=AB=E6=9B=BF=E6=8D=A2=EF=BC=8C=E4=B8=94=E6=9B=BF?= =?UTF-8?q?=E6=8D=A2=E5=90=8EDataEase=E5=86=85=E9=85=8D=E7=BD=AE=E7=9A=84L?= =?UTF-8?q?ogo=E4=B9=9F=E6=97=A0=E6=B3=95=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/pages/panel/main.ts | 2 +- core/core-frontend/src/store/modules/appearance.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/core/core-frontend/src/pages/panel/main.ts b/core/core-frontend/src/pages/panel/main.ts index 388a7a8585..35f561db53 100644 --- a/core/core-frontend/src/pages/panel/main.ts +++ b/core/core-frontend/src/pages/panel/main.ts @@ -100,7 +100,7 @@ const setupAll = async ( appStore.setIsDataEaseBi(true) const appearanceRes = await import('@/store/modules/appearance') const appearanceStore = appearanceRes.useAppearanceStoreWithOut() - appearanceStore.setAppearance() + appearanceStore.setAppearance(true) app.mount(dom) return app } diff --git a/core/core-frontend/src/store/modules/appearance.ts b/core/core-frontend/src/store/modules/appearance.ts index 237f7416ac..d849eb3e28 100644 --- a/core/core-frontend/src/store/modules/appearance.ts +++ b/core/core-frontend/src/store/modules/appearance.ts @@ -127,7 +127,7 @@ export const useAppearanceStore = defineStore('appearanceStore', { setLoaded(data: boolean) { this.loaded = data }, - async setAppearance() { + async setAppearance(isDataEaseBi?: boolean) { const desktop = wsCache.get('app.desktop') if (desktop) { this.loaded = true @@ -205,6 +205,7 @@ export const useAppearanceStore = defineStore('appearanceStore', { if (this.name) { document.title = this.name } + if (isDataEaseBi) return const link = document.querySelector('link[rel="icon"]') if (link) { if (this.web) {