hookehuyr

fix(router): 启用微信授权检查导航守卫

恢复微信授权检查功能,确保未授权用户被正确拦截
/*
* @Date: 2025-03-20 20:36:36
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-07-07 14:26:52
* @LastEditTime: 2025-08-26 09:43:50
* @FilePath: /mlaj/src/router/index.js
* @Description: 路由实例创建和导出
*/
......@@ -22,11 +22,11 @@ const router = createRouter({
// 导航守卫
router.beforeEach(async (to, from, next) => {
// 微信授权检查
// const wxAuthResult = await checkWxAuth()
// if (wxAuthResult !== true) {
// next(wxAuthResult)
// return
// }
const wxAuthResult = await checkWxAuth()
if (wxAuthResult !== true) {
next(wxAuthResult)
return
}
// 检查用户是否已登录
......