1
0
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:
张传龙
2022-09-18 20:05:40 +08:00
parent bdbe9b8483
commit 6664ae8f7b
45 changed files with 138 additions and 139 deletions

14
src/utils/auth/auth.js Normal file
View 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',
})
}