feat(登录): 实现H5模拟登录功能并优化路由拦截
- 在user store中添加setUserInfo方法 - 新增tabbar页面判断工具函数isPageTabbar - 重构路由拦截逻辑,简化登录判断 - 实现H5模拟登录页面及跳转逻辑 - 移除不再使用的usePageAuth钩子
This commit is contained in:
@@ -16,6 +16,10 @@ if (BULGE_ENABLE) {
|
||||
|
||||
export { tabbarList }
|
||||
|
||||
export function isPageTabbar(path: string) {
|
||||
return tabbarList.some(item => item.pagePath === path)
|
||||
}
|
||||
|
||||
/**
|
||||
* 自定义 tabbar 的状态管理,原生 tabbar 无需关注本文件
|
||||
* tabbar 状态,增加 storageSync 保证刷新浏览器时在正确的 tabbar 页面
|
||||
|
||||
Reference in New Issue
Block a user