perf: 未登录重定向路径存储改为完整路径 (#3897)

This commit is contained in:
苗大 2024-06-06 11:31:50 +08:00 committed by GitHub
parent 4974de2553
commit 1a5692060b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);