Merge pull request #8302 from dataease/pr@dev-v2@fix_mobile_ui

fix: 移动端页面title未跟随外观设置
This commit is contained in:
fit2cloud-chenyw 2024-03-04 15:41:03 +08:00 committed by GitHub
commit 21b98ab68a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,6 +6,9 @@ import { useCache } from '@/hooks/web/useCache'
import { getRoleRouters } from '@/api/common'
import { usePermissionStoreWithOut } from '@/store/modules/permission'
import { interactiveStoreWithOut } from '@/store/modules/interactive'
import { useAppearanceStoreWithOut } from '@/store/modules/appearance'
const appearanceStore = useAppearanceStoreWithOut()
const permissionStore = usePermissionStoreWithOut()
const { wsCache } = useCache()
const userStore = useUserStoreWithOut()
@ -19,6 +22,7 @@ const whiteList = ['/login'] // 不重定向白名单
router.beforeEach(async (to, _, next) => {
start()
loadStart()
await appearanceStore.setAppearance()
if (wsCache.get('user.token')) {
if (!userStore.getUid) {
await userStore.setUser()