yangys
2024-01-13 f466ae4fdc645c66c9f25e2e4598b9809e2b41af
src/router/index.js
@@ -26,6 +26,50 @@
  { 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/:style',
        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: 'deviceType',
        name: 'deviceType',
        component: () => import('@/container/deviceType/index')
      },
    ]
  },
  {
    path: '/dashboard',
    component: Layout,
@@ -380,8 +424,8 @@
]
export default new Router({
  mode: 'history',
  base: '/mdc/',
  mode: 'hash',
  base: '/',
  scrollBehavior: () => ({ y: 0 }),
  routes: constantRouterMap
})