|
|
|
@ -141,7 +141,7 @@ public class SysMenuServiceImpl implements ISysMenuService {
|
|
|
|
|
router.setName(getRouteName(menu));
|
|
|
|
|
router.setPath(getRouterPath(menu));
|
|
|
|
|
router.setComponent(getComponent(menu));
|
|
|
|
|
router.setQuery(menu.getQuery());
|
|
|
|
|
router.setQuery(menu.getQueryParam());
|
|
|
|
|
router.setMeta(new MetaVo(menu.getMenuName(), menu.getIcon(), StringUtils.equals("1", menu.getIsCache()), menu.getPath()));
|
|
|
|
|
List<SysMenu> cMenus = (List<SysMenu>) menu.getChildren();
|
|
|
|
|
if (!cMenus.isEmpty() && UserConstants.TYPE_DIR.equals(menu.getMenuType())) {
|
|
|
|
@ -156,7 +156,7 @@ public class SysMenuServiceImpl implements ISysMenuService {
|
|
|
|
|
children.setComponent(menu.getComponent());
|
|
|
|
|
children.setName(StringUtils.capitalize(menu.getPath()));
|
|
|
|
|
children.setMeta(new MetaVo(menu.getMenuName(), menu.getIcon(), StringUtils.equals("1", menu.getIsCache()), menu.getPath()));
|
|
|
|
|
children.setQuery(menu.getQuery());
|
|
|
|
|
children.setQuery(menu.getQueryParam());
|
|
|
|
|
childrenList.add(children);
|
|
|
|
|
router.setChildren(childrenList);
|
|
|
|
|
} else if (menu.getParentId().intValue() == 0 && isInnerLink(menu)) {
|
|
|
|
|