refactor(router): 重构路由系统并优化登录状态检查
- 重构 Router 类,增加权限检查和路由拦截功能 - 优化登录状态检查逻辑,使用 wx.p.isLogin 替代 wx.$LoginStatus - 调整路由跳转方法,支持传参和特殊页面处理 - 移除全局事件注册,降低潜在风险
Showing
28 changed files
with
656 additions
and
380 deletions
router/README.md
0 → 100644
This diff is collapsed.
Click to expand it.
router/router.config.js
0 → 100644
router/router.utils.js
0 → 100644
-
Please register or sign in to post a comment