feat(登录): 实现H5模拟登录功能并优化路由拦截

- 在user store中添加setUserInfo方法
- 新增tabbar页面判断工具函数isPageTabbar
- 重构路由拦截逻辑,简化登录判断
- 实现H5模拟登录页面及跳转逻辑
- 移除不再使用的usePageAuth钩子
This commit is contained in:
feige996
2025-08-18 21:52:32 +08:00
parent 7a89d913ec
commit e8478c9d43
5 changed files with 45 additions and 56 deletions

View File

@@ -100,6 +100,7 @@ export const useUserStore = defineStore(
userInfo,
login,
wxLogin,
setUserInfo,
getUserInfo,
setUserAvatar,
logout,