import main from '@/pages/common/Home.vue' import showHome from "../pages/show/main/showHome"; import jiuyeAndChuangye from "../pages/show/jiuyeAndChuangye/jiuyeAndChuangye"; import shehuiBaozhang from "../pages/show/shehuiBaozhang/shehuiBaozhang"; const indexRouter = { path: '/', name: 'index', component: showHome, redirect: '/index', children: [ { path: '/index', meta: { title: '大屏首页' }, name: 'index', component: () => import('@/pages/show/index/index.vue')}, { path: '/jiuyeAndChuangye', component: jiuyeAndChuangye, redirect: '/workStatistics', name: 'jiuyeAndChuangye', children: [ { path: '/workStatistics', meta: {title: '就业创业'}, name: 'workStatistics', component: () => import('@/pages/show/jiuyeAndChuangye/jiuyeChildren/workStatistics.vue')}, ] }, { path: '/shehuiBaozhang', component: shehuiBaozhang, redirect: '/shehuiBaoxian', name: 'shehuiBaozhang', children: [ { path: '/shehuiBaoxian', meta: {title:'社会保障'}, name: 'shehuiBaoxian', component: () => import('@/pages/show/shehuiBaozhang/shehuiBaozhangChildren/shehuiBaoxian.vue')}, ] } ] } const login = { path: '/login', component: () => import('@/pages/login.vue'), meta: { title: `后台登陆`, } } const NotFound = { path: '/404', component: () => import('@/error_pages/404.vue'), meta: { title: "404 | 啊哦~ 你所访问的页面不存在", } } export const routers = [ indexRouter, // login, // NotFound ]