refactor(router): 移除微信授权检查的导航守卫逻辑
导航守卫中的微信授权检查暂时不需要,先注释掉相关代码以便后续需要时恢复
Showing
1 changed file
with
6 additions
and
6 deletions
| 1 | /* | 1 | /* |
| 2 | * @Date: 2025-03-20 20:36:36 | 2 | * @Date: 2025-03-20 20:36:36 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2025-06-12 10:37:19 | 4 | + * @LastEditTime: 2025-07-07 14:26:52 |
| 5 | * @FilePath: /mlaj/src/router/index.js | 5 | * @FilePath: /mlaj/src/router/index.js |
| 6 | * @Description: 路由实例创建和导出 | 6 | * @Description: 路由实例创建和导出 |
| 7 | */ | 7 | */ |
| ... | @@ -22,11 +22,11 @@ const router = createRouter({ | ... | @@ -22,11 +22,11 @@ const router = createRouter({ |
| 22 | // 导航守卫 | 22 | // 导航守卫 |
| 23 | router.beforeEach(async (to, from, next) => { | 23 | router.beforeEach(async (to, from, next) => { |
| 24 | // 微信授权检查 | 24 | // 微信授权检查 |
| 25 | - const wxAuthResult = await checkWxAuth() | 25 | + // const wxAuthResult = await checkWxAuth() |
| 26 | - if (wxAuthResult !== true) { | 26 | + // if (wxAuthResult !== true) { |
| 27 | - next(wxAuthResult) | 27 | + // next(wxAuthResult) |
| 28 | - return | 28 | + // return |
| 29 | - } | 29 | + // } |
| 30 | 30 | ||
| 31 | // 检查用户是否已登录 | 31 | // 检查用户是否已登录 |
| 32 | 32 | ... | ... |
-
Please register or login to post a comment