This commit is contained in:
2023-06-05 21:02:25 +08:00
parent bdbda8b68e
commit d778ceab61
41 changed files with 1259 additions and 94 deletions

View File

@@ -3,6 +3,7 @@ import { createRouter, createWebHistory } from "vue-router"
import { appRoutes } from "./routes"
// 引入基本重定向路由和notFound路由
import { REDIRECT_MAIN, NOT_FOUND_ROUTE } from "./routes/base"
import createRouteGuard from "@/router/guard/index"
const router = createRouter({
history: createWebHistory(),
@@ -28,4 +29,5 @@ const router = createRouter({
return { top: 0 }
}
})
createRouteGuard(router)
export default router