更新
This commit is contained in:
@@ -300,6 +300,8 @@ router.beforeEach(async (to, from, next) => {
|
||||
}
|
||||
} else {
|
||||
// 普通用户页面认证逻辑
|
||||
console.log(userStore.isAuthenticated,'isAuthenticated');
|
||||
|
||||
if (!userStore.isAuthenticated) {
|
||||
// 尝试从本地存储恢复登录状态
|
||||
await userStore.checkAuth()
|
||||
|
||||
Reference in New Issue
Block a user