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
2025-07-07 14:27:19 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a17d687ac4971abf048962c2672233f580d20d50
a17d687a
1 parent
1fad2d87
refactor(router): 移除微信授权检查的导航守卫逻辑
导航守卫中的微信授权检查暂时不需要,先注释掉相关代码以便后续需要时恢复
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
src/router/index.js
src/router/index.js
View file @
a17d687
/*
* @Date: 2025-03-20 20:36:36
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-0
6-12 10:37:19
* @LastEditTime: 2025-0
7-07 14:26:52
* @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
//
}
// 检查用户是否已登录
...
...
Please
register
or
login
to post a comment