luohairen
2024-11-25 2d0dd4f12d0f58c45e8c1de919b689bd97b88b08
src/router/index.js
@@ -87,7 +87,39 @@
        meta: { title: '个人中心', icon: 'user' }
      }
    ]
  }
  },
  {
    path: '/process',
    component: Layout,
    hidden: true,
    children: [
      {
        path: ':taskType/:step/:taskId',
        component: () => import('@/views/todo/processTask'),
        name: 'process',
        meta: { title: '处理待办' }
      }
    ]
  },
  {
    path: '/project',
    component: Layout,
    children: [
      {
        path: '/plan/index',
        component: () => import('@/views/project/plan/index'),
        name: 'Index',
        meta: { title: '项目计划' }
      },
      /** 项目计划记录 */
      {
        path: '/plan/planRecord',
        component: () => import('@/views/project/plan/planRecord'),
        name: 'PlanRecord',
        meta: { title: '项目计划记录' }
      }
    ]
  },
]
// 动态路由,基于用户权限动态去加载