fix: toLogin
This commit is contained in:
parent
2d879d0592
commit
92e7ada37b
@ -5,7 +5,7 @@ export function toLogin() {
|
||||
const needRedirect = !currentRoute.meta.requireAuth && !['/404', '/login'].includes(router.currentRoute.value.path)
|
||||
router.replace({
|
||||
path: '/login',
|
||||
query: needRedirect ? { ...router.currentRoute.value.query, redirect: router.currentRoute.value.path } : {},
|
||||
query: needRedirect ? { ...currentRoute.query, redirect: currentRoute.path } : {},
|
||||
})
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user