@lambo-design/shared 1.0.0-beta.117 → 1.0.0-beta.119
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/config/config.js +1 -0
- package/package.json +1 -1
- package/utils/menu/index.js +3 -3
- package/utils/platform.js +3 -0
package/config/config.js
CHANGED
package/package.json
CHANGED
package/utils/menu/index.js
CHANGED
|
@@ -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,
|
|
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;
|
package/utils/platform.js
CHANGED
|
@@ -638,6 +638,9 @@ export const isOpenBlank = (menu) => {
|
|
|
638
638
|
if (extendProps && extendProps.target_type && extendProps.target_type == 'blank') {
|
|
639
639
|
return true;
|
|
640
640
|
}
|
|
641
|
+
if (extendProps && extendProps.targetType && extendProps.targetType == 'blank') {
|
|
642
|
+
return true;
|
|
643
|
+
}
|
|
641
644
|
return false;
|
|
642
645
|
}
|
|
643
646
|
|