This commit is contained in:
2025-09-05 16:53:11 +08:00
parent 82879fc920
commit 1bb83df40b
7 changed files with 157 additions and 50 deletions

View File

@@ -300,6 +300,8 @@ router.beforeEach(async (to, from, next) => {
}
} else {
// 普通用户页面认证逻辑
console.log(userStore.isAuthenticated,'isAuthenticated');
if (!userStore.isAuthenticated) {
// 尝试从本地存储恢复登录状态
await userStore.checkAuth()