Skip to content

Commit

Permalink
perf: 未登录重定向路径存储改为完整路径 (#3897)
Browse files Browse the repository at this point in the history
  • Loading branch information
WitMiao authored Jun 6, 2024
1 parent 4974de2 commit 1a56920
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/router/guard/permissionGuard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ export function createPermissionGuard(router: Router) {
path: LOGIN_PATH,
replace: true,
};
if (to.path) {
if (to.fullPath) {
redirectData.query = {
...redirectData.query,
redirect: to.path,
redirect: to.fullPath,
};
}
next(redirectData);
Expand Down

0 comments on commit 1a56920

Please sign in to comment.