perf: 未登录重定向路径存储改为完整路径 (#3897)
This commit is contained in:
parent
4974de2553
commit
1a5692060b
|
|
@ -61,10 +61,10 @@ export function createPermissionGuard(router: Router) {
|
||||||
path: LOGIN_PATH,
|
path: LOGIN_PATH,
|
||||||
replace: true,
|
replace: true,
|
||||||
};
|
};
|
||||||
if (to.path) {
|
if (to.fullPath) {
|
||||||
redirectData.query = {
|
redirectData.query = {
|
||||||
...redirectData.query,
|
...redirectData.query,
|
||||||
redirect: to.path,
|
redirect: to.fullPath,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
next(redirectData);
|
next(redirectData);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue