fix(嵌入式): 嵌入第三方系统后,第三方系统的网站 Logo和网站名称被替换,且替换后DataEase内配置的Logo也无法展示

This commit is contained in:
dataeaseShu 2024-05-15 10:55:21 +08:00
parent 6658eaeb9a
commit 7c170a380f
2 changed files with 3 additions and 2 deletions

View File

@ -100,7 +100,7 @@ const setupAll = async (
appStore.setIsDataEaseBi(true) appStore.setIsDataEaseBi(true)
const appearanceRes = await import('@/store/modules/appearance') const appearanceRes = await import('@/store/modules/appearance')
const appearanceStore = appearanceRes.useAppearanceStoreWithOut() const appearanceStore = appearanceRes.useAppearanceStoreWithOut()
appearanceStore.setAppearance() appearanceStore.setAppearance(true)
app.mount(dom) app.mount(dom)
return app return app
} }

View File

@ -127,7 +127,7 @@ export const useAppearanceStore = defineStore('appearanceStore', {
setLoaded(data: boolean) { setLoaded(data: boolean) {
this.loaded = data this.loaded = data
}, },
async setAppearance() { async setAppearance(isDataEaseBi?: boolean) {
const desktop = wsCache.get('app.desktop') const desktop = wsCache.get('app.desktop')
if (desktop) { if (desktop) {
this.loaded = true this.loaded = true
@ -205,6 +205,7 @@ export const useAppearanceStore = defineStore('appearanceStore', {
if (this.name) { if (this.name) {
document.title = this.name document.title = this.name
} }
if (isDataEaseBi) return
const link = document.querySelector('link[rel="icon"]') const link = document.querySelector('link[rel="icon"]')
if (link) { if (link) {
if (this.web) { if (this.web) {