ZhangXianQiang
2024-05-24 aa05304d221b1883d746e686f390d6f3fba598a7
src/router/index.js
@@ -47,19 +47,6 @@
    hidden: true
  },
  {
    path: '/car/vehicle-data-monitor',
    component: Layout,
    hidden: true,
    children: [
    {
      path: 'index',
      name: 'vehicle-data-monitor',
      component: () => import('@/views/system/vehicle-data-monitor/index'),
      meta: { title: '车辆过卡口数据一致性', activeMenu: '/system/vehicle-data-monitor' }
    }
  ]
  },
  {
    path: '/register',
    component: () => import('@/views/register'),
    hidden: true
@@ -77,7 +64,7 @@
  {
    path: '',
    component: Layout,
    redirect: 'index',
    redirect: 'screen',
    children: [
      {
        path: 'index',
@@ -87,13 +74,24 @@
      }
    ]
  },
  // {
  //   path: '',
  //   component: Layout,
  //   redirect: 'index',
  //   children: [
  //     {
  //       path: 'index',
  //       component: () => import('@/views/index'),
  //       name: 'Index',
  //       meta: { title: '首页', icon: 'dashboard', affix: true }
  //     }
  //   ]
  // },
  {
    path: '/screen',
    component: Layout,
    hidden: true,
    component: () => import('@/views/screen/index'),
    name: 'Profile',
    meta: { title: '大屏信息', icon: 'user' }
  },
  {
    path: '/user',
@@ -113,6 +111,25 @@
// 动态路由,基于用户权限动态去加载
export const dynamicRoutes = [
  {
    path: '/data-manage/data-detail',
    component: Layout,
    hidden: true,
    permissions: ['data:manage:detail'],
    children: [
      {
        path: 'index/:type/:typeId',
        component: () => import('@/views/system/data-manage/data-detail'),
        name: 'DataDetail',
        meta: {
          title: '数据详情',
          activeMenu: '/data-manage'
         }
      }
    ]
  },
  {
    path: '/system/user-auth',
    component: Layout,