Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
mlaj
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2026-01-19 14:11:37 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
501cee7f0ae51a242f28b17d66dac46dce6225f8
501cee7f
1 parent
b2575e83
feat(router): 添加学习详情页到需要登录的路由列表
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
src/router/guards.js
src/router/guards.js
View file @
501cee7
/*
* @Date: 2025-03-20 20:36:36
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 202
5-12-10 11:50:14
* @LastEditTime: 202
6-01-19 14:11:06
* @FilePath: /mlaj/src/router/guards.js
* @Description: 路由守卫逻辑
*/
import
{
getAuthInfoAPI
}
from
'@/api/auth'
import
{
wxInfo
}
from
"@/utils/tools"
// 需要登录才能访问的路由
//
TAG:
需要登录才能访问的路由
export
const
authRequiredRoutes
=
[
{
path
:
'/profile'
,
...
...
@@ -30,6 +30,10 @@ export const authRequiredRoutes = [
path
:
'/teacher'
,
exact
:
false
,
},
{
path
:
'/studyDetail'
,
exact
:
false
,
},
]
/**
...
...
Please
register
or
login
to post a comment