hookehuyr

feat(router): 添加学习详情页到需要登录的路由列表

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-12-10 11:50:14 4 + * @LastEditTime: 2026-01-19 14:11:06
5 * @FilePath: /mlaj/src/router/guards.js 5 * @FilePath: /mlaj/src/router/guards.js
6 * @Description: 路由守卫逻辑 6 * @Description: 路由守卫逻辑
7 */ 7 */
8 import { getAuthInfoAPI } from '@/api/auth' 8 import { getAuthInfoAPI } from '@/api/auth'
9 import { wxInfo } from "@/utils/tools" 9 import { wxInfo } from "@/utils/tools"
10 10
11 -// 需要登录才能访问的路由 11 +// TAG: 需要登录才能访问的路由
12 export const authRequiredRoutes = [ 12 export const authRequiredRoutes = [
13 { 13 {
14 path: '/profile', 14 path: '/profile',
...@@ -30,6 +30,10 @@ export const authRequiredRoutes = [ ...@@ -30,6 +30,10 @@ export const authRequiredRoutes = [
30 path: '/teacher', 30 path: '/teacher',
31 exact: false, 31 exact: false,
32 }, 32 },
33 + {
34 + path: '/studyDetail',
35 + exact: false,
36 + },
33 ] 37 ]
34 38
35 /** 39 /**
......