fix: 修复语言设置逻辑问题
This commit is contained in:
@@ -22,9 +22,7 @@ router.beforeEach(async (to, from, next) => {
|
||||
}
|
||||
if (localStorage.getItem(storageKey.token)) {
|
||||
// 加载i18n
|
||||
if (!localStorage.getItem(storageKey.i18n)) {
|
||||
await loadI18n()
|
||||
}
|
||||
await loadI18n()
|
||||
// 加载权限
|
||||
if (permissionWhiteList.indexOf(to.path) !== -1) {
|
||||
next()
|
||||
|
||||
Reference in New Issue
Block a user