mirror of
https://gitee.com/mirrors/AllinSSL.git
synced 2026-03-13 10:00:53 +08:00
【新增】私有证书
This commit is contained in:
@@ -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()
|
||||
},
|
||||
|
||||
@@ -8,10 +8,9 @@ console.log(routeGroup, routes)
|
||||
|
||||
// 创建路由
|
||||
const router = useCreateRouter({
|
||||
routes: routeGroup,
|
||||
routes:routeGroup,
|
||||
history: createWebHistory(),
|
||||
})
|
||||
|
||||
// 全局路由守卫
|
||||
useRouterEach(router)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user