forked from github/dataease
Merge pull request #10500 from dataease/pr@dev-v2@style_appearance_title
style(X-Pack): 外观配置-网站名称修改后刷新页面会闪现DataEase
This commit is contained in:
commit
9c450b2d57
@ -4,7 +4,7 @@
|
|||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<link rel="icon" type="image/svg+xml" href="/dataease.svg" />
|
<link rel="icon" type="image/svg+xml" href="/dataease.svg" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>DataEase</title>
|
<title></title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="app"></div>
|
<div id="app"></div>
|
||||||
|
@ -19,7 +19,7 @@ export const useAppStore = defineStore('app', {
|
|||||||
return {
|
return {
|
||||||
size: true, // 尺寸图标
|
size: true, // 尺寸图标
|
||||||
pageLoading: false, // 路由跳转loading
|
pageLoading: false, // 路由跳转loading
|
||||||
title: 'DataEase',
|
title: '',
|
||||||
dekey: 'DataEaseKey',
|
dekey: 'DataEaseKey',
|
||||||
isDataEaseBi: false,
|
isDataEaseBi: false,
|
||||||
isIframe: false,
|
isIframe: false,
|
||||||
|
@ -152,10 +152,12 @@ export const useAppearanceStore = defineStore('appearanceStore', {
|
|||||||
if (this.loaded) {
|
if (this.loaded) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
document.title = ''
|
||||||
const res = await uiLoadApi()
|
const res = await uiLoadApi()
|
||||||
this.loaded = true
|
this.loaded = true
|
||||||
const resData = res.data
|
const resData = res.data
|
||||||
if (!resData?.length) {
|
if (!resData?.length) {
|
||||||
|
document.title = 'DataEase'
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
const data: AppearanceState = { loaded: false, community: true }
|
const data: AppearanceState = { loaded: false, community: true }
|
||||||
@ -223,6 +225,8 @@ export const useAppearanceStore = defineStore('appearanceStore', {
|
|||||||
this.footContent = data.footContent
|
this.footContent = data.footContent
|
||||||
if (this.name) {
|
if (this.name) {
|
||||||
document.title = this.name
|
document.title = this.name
|
||||||
|
} else {
|
||||||
|
document.title = 'DataEase'
|
||||||
}
|
}
|
||||||
if (isDataEaseBi) return
|
if (isDataEaseBi) return
|
||||||
const link = document.querySelector('link[rel="icon"]')
|
const link = document.querySelector('link[rel="icon"]')
|
||||||
|
2
de-xpack
2
de-xpack
@ -1 +1 @@
|
|||||||
Subproject commit 68a35e78970ba610a3d596695b7e8017b6e31721
|
Subproject commit 2e3a15d62588fe0b3b23f2f78c67f78a2653432a
|
Loading…
Reference in New Issue
Block a user