mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-01-23 09:40:25 +08:00
perf: 未登录重定向路径存储改为完整路径 (#3897)
This commit is contained in:
parent
4974de2553
commit
1a5692060b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user