From b6b3409c9f01dd414b962a946ec64863e2264864 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Mon, 4 Mar 2024 15:39:21 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A7=BB=E5=8A=A8=E7=AB=AF=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2title=E6=9C=AA=E8=B7=9F=E9=9A=8F=E5=A4=96=E8=A7=82?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/permissionMobile.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/core-frontend/src/permissionMobile.ts b/core/core-frontend/src/permissionMobile.ts index ffe285a70e..23c3b718f6 100644 --- a/core/core-frontend/src/permissionMobile.ts +++ b/core/core-frontend/src/permissionMobile.ts @@ -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()