src/router/router.js
@@ -82,6 +82,15 @@ component: () => import('@/views/error-page/500.vue') }; export const home2 = { path: '/home2', meta: { title: 'home' }, name: 'home', component: () => import('@/views/sys/user-manage/userManage.vue') }; // 作为Main组件的子页面展示但是不在左侧菜单显示的路由写在otherRouter里 export const otherRouter = { path: '/', @@ -112,5 +121,6 @@ otherRouter, ...appRouter, page500, page403 page403, home2 ];