fix: 🐛 修复登录和路由重复获取用户信息的问题

This commit is contained in:
Ray.Hao
2025-08-14 18:34:56 +08:00
parent 9b8299e895
commit d9b2f55a5e
5 changed files with 10 additions and 21 deletions

View File

@@ -137,6 +137,7 @@ export const useUserStore = defineStore("user", () => {
return {
userInfo,
rememberMe,
isLoggedIn: () => !!Auth.getAccessToken(),
getUserInfo,
login,
logout,