Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
monorepo
/
venus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 9d6cc22d
authored
Aug 11, 2024
by
Netfan
Committed by
GitHub
Aug 11, 2024
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: missing route data in guard, fixed: #4108 (#4115)
1 parent
7a9ad7de
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
apps/web-antd/src/router/guard.ts
apps/web-antd/src/router/guard.ts
View file @
9d6cc22
...
...
@@ -115,10 +115,10 @@ function setupAccessGuard(router: Router) {
// 保存菜单信息和路由信息
accessStore
.
setAccessMenus
(
accessibleMenus
);
accessStore
.
setAccessRoutes
(
accessibleRoutes
);
const
redirectPath
=
(
from
.
query
.
redirect
??
to
.
p
ath
)
as
string
;
const
redirectPath
=
(
from
.
query
.
redirect
??
to
.
fullP
ath
)
as
string
;
return
{
path
:
decodeURIComponent
(
redirectPath
),
...
router
.
resolve
(
decodeURIComponent
(
redirectPath
)
),
replace
:
true
,
};
});
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment