|
|
@@ -31,7 +31,6 @@ const routes_404 = [
|
|
|
// 系统路由
|
|
|
// const routes = [...systemRouter, ...whiteListRouters, ...routes_404,...forum,...student,...portal]
|
|
|
const routes = [...whiteListRouters, ...routes_404,...forum,...student,...portal]
|
|
|
-console.log('什么路由',routes)
|
|
|
const router = createRouter({
|
|
|
history: createWebHistory(),
|
|
|
routes
|
|
|
@@ -50,7 +49,6 @@ const exportWhiteListFromRouter = (router) => {
|
|
|
return res
|
|
|
}
|
|
|
const whiteList = exportWhiteListFromRouter(whiteListRouters)
|
|
|
-console.log('拥有的白名单',whiteList)
|
|
|
router.beforeEach(async (to, from, next) => {
|
|
|
NProgress.start()
|
|
|
EventBus.emit('getCounts')
|