forked from github/dataease
fix(嵌入式): 嵌入第三方系统后,第三方系统的网站 Logo和网站名称被替换,且替换后DataEase内配置的Logo也无法展示
This commit is contained in:
parent
6658eaeb9a
commit
7c170a380f
@ -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
|
||||
}
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user