1
gaosp
2024-01-12 70a87a18cca12dd0e43360f91a5be9754dc4cb37
src/router/index.js
@@ -26,6 +26,44 @@
  { path: '/', component: () => import('@/views/login/index'), hidden: true },
  // { path: '/login', component: () => import('@/views/login/index'), hidden: true },
  // 首页
  { path: '/home',
    component: () => import('@/container/home/index'),
    children: [
      {
        path: 'index',
        name: 'index',
        component: () => import('@/container/home/Welcome')
      },
      {
        path: 'map',
        name: 'map',
        component: () => import('@/container/Map/index')
      },
      {
        path: 'workshop/:id',
        name: 'workshop',
        component: () => import('@/container/workshop/index')
      },
      // 设备维护
      {
        path: 'maintenance/:id',
        name: 'maintenance',
        component: () => import('@/container/maintenance/index')
      },
      // 工件信息
      {
        path: 'component',
        name: 'component',
        component: () => import('@/container/component/index')
      },
      // 台账
      {
        path: 'ledger',
        name: 'ledger',
        component: () => import('@/container/ledger/index')
      },
    ]
  },
  {
    path: '/dashboard',
    component: Layout,
@@ -380,8 +418,8 @@
]
export default new Router({
  mode: 'history',
  base: '/mdc/',
  mode: 'hash',
  base: '/',
  scrollBehavior: () => ({ y: 0 }),
  routes: constantRouterMap
})