fix(仪表板): 公共链接自定义字体失效

This commit is contained in:
dataeaseShu 2024-09-04 18:10:42 +08:00
parent ca000b67ae
commit 409d9f5a80

View File

@ -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 {