gaosp
2024-01-05 ea911d3b42cac8948eb6f1285c7ad46706707643
src/router/index.js
@@ -26,6 +26,21 @@
  { path: '/', component: () => import('@/views/login/index'), hidden: true },
  // { path: '/login', component: () => import('@/views/login/index'), hidden: true },
  // 首页
  { path: '/home',
    component: () => import('@/views/home/index'),
    children: [
      {
        path: 'index',
        name: 'index',
        component: () => import('@/views/home/Welcome')
      },
      {
        path: 'map',
        name: 'map',
        component: () => import('@/container/Map/index')
      }
    ]
  },
  {
    path: '/dashboard',
    component: Layout,
@@ -380,8 +395,8 @@
]
export default new Router({
  mode: 'history',
  base: '/mdc/',
  mode: 'hash',
  base: '/',
  scrollBehavior: () => ({ y: 0 }),
  routes: constantRouterMap
})