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)
|
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
|
||||||
}
|
}
|
||||||
|
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user