Merge pull request #12021 from dataease/pr@dev-v2_st

fix(仪表板): 公共链接自定义字体失效
This commit is contained in:
dataeaseShu 2024-09-04 18:11:34 +08:00 committed by GitHub
commit a3881c2f6b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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 {