15 lines
282 B
JavaScript
15 lines
282 B
JavaScript
import { router } from '@/router'
|
|
|
|
export function toLogin() {
|
|
router.replace({
|
|
path: '/login',
|
|
query: { ...router.currentRoute.value.query, redirect: router.currentRoute.value.path },
|
|
})
|
|
}
|
|
|
|
export function toFourZeroFour() {
|
|
router.replace({
|
|
path: '/404',
|
|
})
|
|
}
|