mirror of
https://github.com/zclzone/vue-naive-admin.git
synced 2025-12-28 12:10:20 +08:00
refactor: folders
This commit is contained in:
14
src/utils/auth/auth.js
Normal file
14
src/utils/auth/auth.js
Normal file
@@ -0,0 +1,14 @@
|
||||
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',
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user