苗大
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
2 deletions
-
src/router/guard/permissionGuard.ts
|
|
@ -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); |
|
|
|