This commit is contained in:
sion
2026-04-05 19:43:31 +08:00
parent 5b9a80e3fe
commit 2fbc47117c
94 changed files with 1032 additions and 882 deletions

View File

@@ -2,11 +2,10 @@ import type { Router } from 'vue-router'
import nprogress from 'nprogress'
import { authGuard } from './auth-guard'
import { setupAuthGuard } from './auth-guard'
/**
* global router guard
* now only used for progress bar
*/
function setupCommonGuard(router: Router) {
router.beforeEach(() => {
@@ -21,5 +20,5 @@ function setupCommonGuard(router: Router) {
export function createRouterGuard(router: Router) {
setupCommonGuard(router)
authGuard(router)
setupAuthGuard(router)
}