fix: fix incorrent usage of vue router
This commit is contained in:
@@ -3,6 +3,6 @@ import { router } from '@/router'
|
||||
export function toLogin() {
|
||||
router.replace({
|
||||
path: '/login',
|
||||
query: { ...router.currentRoute.query, redirect: router.currentRoute.path },
|
||||
query: { ...router.currentRoute.value.query, redirect: router.currentRoute.value.path },
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user