diff --git a/src/router/index.js b/src/router/index.js index 976a537..44cba3b 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -9,6 +9,7 @@ /* Layout */ import Layout from '@/layout/Layout' import { systemRouters } from './modules/system' +import { exampleRouters } from './modules/example' /** * hidden: true if `hidden:true` will not show in the sidebar(default is false) @@ -69,6 +70,7 @@ // 异步挂载路由 // 动态需要根据权限加载的路由表 export const asyncRouterMap = [ + ...exampleRouters, ...systemRouters, { path: '*', redirect: '/404', hidden: true } ]