Explorar o código

修改流程设计 路由

yusheng hai 3 meses
pai
achega
2fb3be2192
Modificáronse 1 ficheiros con 37 adicións e 37 borrados
  1. 37 37
      src/router/index.js

+ 37 - 37
src/router/index.js

@@ -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)