feat(router): 完善登录拦截逻辑和路由处理
增加登录状态检查和重定向逻辑 添加 HOME_PAGE 常量导出 优化 tabbar 路径匹配逻辑 导出 setTokenInfo 方法供外部使用 启用路由拦截器日志
This commit is contained in:
@@ -23,7 +23,8 @@ if (customTabbarEnable && BULGE_ENABLE) {
|
||||
}
|
||||
|
||||
export function isPageTabbar(path: string) {
|
||||
return tabbarList.some(item => item.pagePath === path)
|
||||
const _path = path.split('?')[0]
|
||||
return tabbarList.some(item => item.pagePath === _path)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user