@lambo-design/shared 1.0.0-beta.116 → 1.0.0-beta.118

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lambo-design/shared",
3
- "version": "1.0.0-beta.116",
3
+ "version": "1.0.0-beta.118",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "author": "lambo",
@@ -162,7 +162,7 @@ const listToMenuTree = (list, menuTree, pageNode, parentId, crumbs, root, appId)
162
162
  * @param generatorMenuRouter
163
163
  * @returns []
164
164
  */
165
- export const generatorDynamicRouter = (permissionList,exampleMenuData,constantRouterComponents) => {
165
+ export const generatorDynamicRouter = (permissionList,constantRouterComponents) => {
166
166
  let allMenu = generatorMenuRouter(permissionList, null);
167
167
  let menuData = allMenu.menuData;
168
168
  let pageNode = allMenu.pageNode;
@@ -170,8 +170,8 @@ export const generatorDynamicRouter = (permissionList,exampleMenuData,constantRo
170
170
  menuData.push(pageNode);
171
171
  }
172
172
  //给路由添加面包屑属性,解决示例页面左侧菜单点击不选中的问题
173
- routesAddCrumbs(exampleMenuData,[]);
174
- menuData = menuData.concat(exampleMenuData)
173
+ //routesAddCrumbs(exampleMenuData,[]);
174
+ //menuData = menuData.concat(exampleMenuData)
175
175
  let dynamicRouter = generator(menuData,constantRouterComponents);
176
176
 
177
177
  return dynamicRouter;
@@ -278,7 +278,7 @@ const generator = (menuData,constantRouterComponents) => {
278
278
  item.path = "";
279
279
  }
280
280
  if (item.children && item.children.length > 0) {
281
- generator(item.children);
281
+ generator(item.children,constantRouterComponents);
282
282
  }
283
283
  }
284
284
  }