fix: 移动端页面title未跟随外观设置

This commit is contained in:
fit2cloud-chenyw 2024-03-04 15:39:21 +08:00
parent d6b80b9636
commit b6b3409c9f

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()