Files
jdt-mer/src/utils/auth.js
2022-06-17 22:44:32 +08:00

9 lines
190 B
JavaScript

import { router } from '@/router'
export function toLogin() {
router.replace({
path: '/login',
query: { ...router.currentRoute.query, redirect: router.currentRoute.path },
})
}