gaoluyang
2025-02-13 8d81c0fd140addfa641a1e70532fb8b6447a3174
src/router/index.js
@@ -93,12 +93,6 @@
// 动态路由,基于用户权限动态去加载
export const dynamicRoutes = [
  {
    // 原材料报检
    path: '/rawMaterialInspection',
    component: Layout,
    hidden: true,
  },
  {
    // 原材料下单
    path: '/materialOrder',
    component: Layout,
@@ -135,14 +129,14 @@
    component: Layout,
    hidden: true,
    permissions: ['system:role:edit'],
    // children: [
    //   {
    //     path: 'user/:roleId(\\d+)',
    //     component: () => import('@/views/system/role/authUser'),
    //     name: 'AuthUser',
    //     meta: { title: '分配用户', activeMenu: '/system/role' }
    //   }
    // ]
    children: [
      {
        path: 'user/:roleId(\\d+)',
        component: () => import('@/views/system/role/authUser'),
        name: 'AuthUser',
        meta: { title: '分配用户', activeMenu: '/system/role' }
      }
    ]
  },
  {
    // 数据字典
@@ -150,14 +144,14 @@
    component: Layout,
    hidden: true,
    permissions: ['system:dict:list'],
    // children: [
    //   {
    //     path: 'index/:dictId(\\d+)',
    //     component: () => import('@/views/system/dict/data'),
    //     name: 'Data',
    //     meta: { title: '字典数据', activeMenu: '/system/dict' }
    //   }
    // ]
    children: [
      {
        path: 'index/:dictId(\\d+)',
        component: () => import('@/views/system/dict/data'),
        name: 'Data',
        meta: { title: '字典数据', activeMenu: '/system/dict' }
      }
    ]
  },
  {
    // 数据字典