ZhangXianQiang
2024-05-24 aa05304d221b1883d746e686f390d6f3fba598a7
src/router/index.js
@@ -64,7 +64,7 @@
  {
    path: '',
    component: Layout,
    redirect: 'index',
    redirect: 'screen',
    children: [
      {
        path: 'index',
@@ -73,6 +73,25 @@
        meta: { title: '首页', icon: 'dashboard', affix: true }
      }
    ]
  },
  // {
  //   path: '',
  //   component: Layout,
  //   redirect: 'index',
  //   children: [
  //     {
  //       path: 'index',
  //       component: () => import('@/views/index'),
  //       name: 'Index',
  //       meta: { title: '首页', icon: 'dashboard', affix: true }
  //     }
  //   ]
  // },
  {
    path: '/screen',
    hidden: true,
    component: () => import('@/views/screen/index'),
  },
  {
    path: '/user',
@@ -92,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,