【新增】私有证书

This commit is contained in:
cai
2025-09-03 15:15:59 +08:00
parent efd052a297
commit 954cd1638d
442 changed files with 76787 additions and 7483 deletions

View File

@@ -18,7 +18,7 @@ const useRouterEach = (router: Router) =>
loadingBar.start()
// 判断当前路由是否存在,如果不存在,则跳转到 404
if (!router.hasRoute(to.name as string)) {
if (!to.path.includes('/404')) return next({ path: '/404' })
if (!to.path.includes('404')) return next({ path: '/404' })
}
next()
},

View File

@@ -8,10 +8,9 @@ console.log(routeGroup, routes)
// 创建路由
const router = useCreateRouter({
routes: routeGroup,
routes:routeGroup,
history: createWebHistory(),
})
// 全局路由守卫
useRouterEach(router)