|
|
@@ -48,43 +48,43 @@ router.beforeEach((to, from, next) => {
|
|
|
store
|
|
|
.dispatch('user/fetchUserInfo')
|
|
|
.then(({ menus, homePath, authoritiesRouter }) => {
|
|
|
- menus.forEach((item) => {
|
|
|
- //匹配第一层路由名称
|
|
|
- if (item.name == '配置管理') {
|
|
|
- item.children.push(
|
|
|
- {
|
|
|
- path: '/bpm/definition',
|
|
|
- component: 'bpm/definition',
|
|
|
- name: '流程定义',
|
|
|
- meta: {
|
|
|
- title: '流程定义',
|
|
|
- hide: true,
|
|
|
- routePath: '/bpm/definition'
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/bpm/modelEditor',
|
|
|
- component: 'bpm/model/modelEditor',
|
|
|
- name: '设计流程',
|
|
|
- meta: {
|
|
|
- title: '设计流程',
|
|
|
- hide: true,
|
|
|
- routePath: '/bpm/modelEditor'
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/bpm/processInstance',
|
|
|
- component: 'bpm/processInstance/detail',
|
|
|
- name: '流程详情',
|
|
|
- meta: {
|
|
|
- title: '流程详情',
|
|
|
- hide: true,
|
|
|
- routePath: '/bpm/processInstance'
|
|
|
- }
|
|
|
- }
|
|
|
- );
|
|
|
- }
|
|
|
- });
|
|
|
+ // menus.forEach((item) => {
|
|
|
+ // //匹配第一层路由名称
|
|
|
+ // if (item.name == '配置管理') {
|
|
|
+ // item.children.push(
|
|
|
+ // {
|
|
|
+ // path: '/bpm/definition',
|
|
|
+ // component: 'bpm/definition',
|
|
|
+ // name: '流程定义',
|
|
|
+ // meta: {
|
|
|
+ // title: '流程定义',
|
|
|
+ // hide: true,
|
|
|
+ // routePath: '/bpm/definition'
|
|
|
+ // }
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // path: '/bpm/modelEditor',
|
|
|
+ // component: 'bpm/model/modelEditor',
|
|
|
+ // name: '设计流程',
|
|
|
+ // meta: {
|
|
|
+ // title: '设计流程',
|
|
|
+ // hide: true,
|
|
|
+ // routePath: '/bpm/modelEditor'
|
|
|
+ // }
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // path: '/bpm/processInstance',
|
|
|
+ // component: 'bpm/processInstance/detail',
|
|
|
+ // name: '流程详情',
|
|
|
+ // meta: {
|
|
|
+ // title: '流程详情',
|
|
|
+ // hide: true,
|
|
|
+ // routePath: '/bpm/processInstance'
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // );
|
|
|
+ // }
|
|
|
+ // });
|
|
|
if (menus) {
|
|
|
router.addRoute(
|
|
|
getMenuRoutes([...menus, ...authoritiesRouter], homePath)
|