付延余
2022-04-09 1d42ad8fd052501107a4ef5ecb3249facb7d54d0
src/router/router.js
@@ -3,33 +3,34 @@
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: '/chuangyeDanbaoDaikuan', meta: {title: '创业担保贷款'}, name: 'chuangyeDanbaoDaikuan',  component: () => import('@/pages/show/jiuyeAndChuangye/jiuyeChildren/chuangyeDanbaoDaikuan.vue')},
        { path: '/jiuyeQingkuang', meta: {title: '就业情况'}, name: 'jiuyeQingkuang',  component: () => import('@/pages/show/jiuyeAndChuangye/jiuyeChildren/jiuyeQingkuang.vue')},
      ]
    },
    {
      path: '/shehuiBaozhang',
      component: shehuiBaozhang,
      redirect: '/shehuiBaoxian',
      name: 'shehuiBaozhang',
      children: [
        { path: '/shehuiBaoxian', meta: {title:'社会保障'}, name: 'shehuiBaoxian', component: () => import('@/pages/show/shehuiBaozhang/shehuiBaozhangChildren/shehuiBaoxian.vue')},
        { path: '/shebaoShouzhiZongbiao', meta: {title:'社保收支总表'}, name: 'shebaoShouzhiZongbiao', component: () => import('@/pages/show/shehuiBaozhang/shehuiBaozhangChildren/shebaoShouzhiZongbiao.vue')},
      ]
    }
  ]
    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: '/chuangyeDanbaoDaikuan', meta: {title: '创业担保贷款'}, name: 'chuangyeDanbaoDaikuan',  component: () => import('@/pages/show/jiuyeAndChuangye/jiuyeChildren/chuangyeDanbaoDaikuan.vue')},
           { path: '/jiuyeQingkuang', meta: {title: '就业情况'}, name: 'jiuyeQingkuang',  component: () => import('@/pages/show/jiuyeAndChuangye/jiuyeChildren/jiuyeQingkuang.vue')},
           { path: '/biyeshengStatistics', meta: {title: '毕业生统计'}, name: 'biyeshengStatistics',  component: () => import('@/pages/show/jiuyeAndChuangye/jiuyeChildren/biyeshengStatistics.vue')},
         ]
        },
        {
          path: '/shehuiBaozhang',
          component: shehuiBaozhang,
          redirect: '/shehuiBaoxian',
          name: 'shehuiBaozhang',
          children: [
            { path: '/shehuiBaoxian', meta: {title:'社会保障'}, name: 'shehuiBaoxian', component: () => import('@/pages/show/shehuiBaozhang/shehuiBaozhangChildren/shehuiBaoxian.vue')},
            { path: '/shebaoShouzhiZongbiao', meta: {title:'社保收支总表'}, name: 'shebaoShouzhiZongbiao', component: () => import('@/pages/show/shehuiBaozhang/shehuiBaozhangChildren/shebaoShouzhiZongbiao.vue')},
          ]
        }
    ]
}
const login = {
  path: '/login',