From af32627adae7e40039370dded29b851976b19033 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Tue, 22 Oct 2024 11:11:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B5=8F=E8=A7=88=E5=99=A8tab=E9=A1=B5?= =?UTF-8?q?=E4=B8=AD=E7=BD=91=E7=AB=99icon=E6=97=A0=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/store/modules/appearance.ts | 22 ++++++++++++------- de-xpack | 2 +- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/core/core-frontend/src/store/modules/appearance.ts b/core/core-frontend/src/store/modules/appearance.ts index 0ea98a58fc..c8eebf32e9 100644 --- a/core/core-frontend/src/store/modules/appearance.ts +++ b/core/core-frontend/src/store/modules/appearance.ts @@ -241,6 +241,7 @@ export const useAppearanceStore = defineStore('appearanceStore', { if (!resData?.length) { if (!isDataEaseBi) { document.title = 'DataEase' + setLinkIcon() } return } @@ -258,6 +259,7 @@ export const useAppearanceStore = defineStore('appearanceStore', { this.showDemoTips = data.showDemoTips this.demoTipsContent = data.demoTipsContent this.loaded = true + setLinkIcon() return } this.navigate = data.navigate @@ -319,18 +321,22 @@ export const useAppearanceStore = defineStore('appearanceStore', { document.title = 'DataEase' setTitle('DataEase') } - const link = document.querySelector('link[rel="icon"]') - if (link) { - if (this.web) { - link['href'] = baseUrl + this.web - } else { - link['href'] = '/dataease.svg' - } - } + setLinkIcon(this.web) } } }) +const setLinkIcon = (linkWeb?: string) => { + const link = document.querySelector('link[rel="icon"]') + if (link) { + if (linkWeb) { + link['href'] = baseUrl + linkWeb + } else { + link['href'] = '/dataease.svg' + } + } +} + export const useAppearanceStoreWithOut = () => { return useAppearanceStore(store) } diff --git a/de-xpack b/de-xpack index 5c725cace2..345818bea9 160000 --- a/de-xpack +++ b/de-xpack @@ -1 +1 @@ -Subproject commit 5c725cace2794fe5c8be59f1a299b0650e2dfa82 +Subproject commit 345818bea9a59d5741a0b6ff272ad0adaddce18f