Merge pull request #10500 from dataease/pr@dev-v2@style_appearance_title

style(X-Pack): 外观配置-网站名称修改后刷新页面会闪现DataEase
This commit is contained in:
fit2cloud-chenyw 2024-06-25 17:26:35 +08:00 committed by GitHub
commit 9c450b2d57
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 7 additions and 3 deletions

View File

@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/dataease.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>DataEase</title>
<title></title>
</head>
<body>
<div id="app"></div>

View File

@ -19,7 +19,7 @@ export const useAppStore = defineStore('app', {
return {
size: true, // 尺寸图标
pageLoading: false, // 路由跳转loading
title: 'DataEase',
title: '',
dekey: 'DataEaseKey',
isDataEaseBi: false,
isIframe: false,

View File

@ -152,10 +152,12 @@ export const useAppearanceStore = defineStore('appearanceStore', {
if (this.loaded) {
return
}
document.title = ''
const res = await uiLoadApi()
this.loaded = true
const resData = res.data
if (!resData?.length) {
document.title = 'DataEase'
return
}
const data: AppearanceState = { loaded: false, community: true }
@ -223,6 +225,8 @@ export const useAppearanceStore = defineStore('appearanceStore', {
this.footContent = data.footContent
if (this.name) {
document.title = this.name
} else {
document.title = 'DataEase'
}
if (isDataEaseBi) return
const link = document.querySelector('link[rel="icon"]')

@ -1 +1 @@
Subproject commit 68a35e78970ba610a3d596695b7e8017b6e31721
Subproject commit 2e3a15d62588fe0b3b23f2f78c67f78a2653432a