From 409d9f5a804804aaf6ce00613b5eb95d0d27e5bb Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Wed, 4 Sep 2024 18:10:42 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20=E5=85=AC?= =?UTF-8?q?=E5=85=B1=E9=93=BE=E6=8E=A5=E8=87=AA=E5=AE=9A=E4=B9=89=E5=AD=97?= =?UTF-8?q?=E4=BD=93=E5=A4=B1=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/permission.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/core-frontend/src/permission.ts b/core/core-frontend/src/permission.ts index 19773fa0b1..d10056832d 100644 --- a/core/core-frontend/src/permission.ts +++ b/core/core-frontend/src/permission.ts @@ -59,8 +59,8 @@ router.beforeEach(async (to, from, next) => { } } await appearanceStore.setAppearance() + await appearanceStore.setFontList() if ((wsCache.get('user.token') || isDesktop) && !to.path.startsWith('/de-link/')) { - await appearanceStore.setFontList() if (!userStore.getUid) { await userStore.setUser() } @@ -134,7 +134,7 @@ router.beforeEach(async (to, from, next) => { whiteList.includes(to.path) || to.path.startsWith('/de-link/') ) { - await appearanceStore.setAppearance() + await appearanceStore.setFontList() permissionStore.setCurrentPath(to.path) next() } else {