Browse Source
fix:修复默认默认首页如果携带参数时刷新页面参数丢失问题 (#7102)
Co-authored-by: chenwei <chenw@jiuzhekan.com>
pull/7108/head
MRSWC
4 months 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
-
playground/src/router/guard.ts
|
|
|
@ -108,9 +108,9 @@ function setupAccessGuard(router: Router) { |
|
|
|
let redirectPath: string; |
|
|
|
if (from.query.redirect) { |
|
|
|
redirectPath = from.query.redirect as string; |
|
|
|
} else if (to.path === preferences.app.defaultHomePath) { |
|
|
|
} else if (to.fullPath === preferences.app.defaultHomePath) { |
|
|
|
redirectPath = preferences.app.defaultHomePath; |
|
|
|
} else if (userInfo.homePath && to.path === userInfo.homePath) { |
|
|
|
} else if (userInfo.homePath && to.fullPath === userInfo.homePath) { |
|
|
|
redirectPath = userInfo.homePath; |
|
|
|
} else { |
|
|
|
redirectPath = to.fullPath; |
|
|
|
|