|
|
|
@ -142,7 +142,7 @@ public class SysMenuServiceImpl implements ISysMenuService {
|
|
|
|
|
router.setPath(getRouterPath(menu));
|
|
|
|
|
router.setComponent(getComponent(menu));
|
|
|
|
|
router.setQuery(menu.getQueryParam());
|
|
|
|
|
router.setMeta(new MetaVo(menu.getMenuName(), menu.getIcon(), 1 == menu.getIsCache(), menu.getPath()));
|
|
|
|
|
router.setMeta(new MetaVo(menu.getMenuName(), menu.getIcon(), StringUtils.equals("1", menu.getIsCache()), menu.getPath()));
|
|
|
|
|
List<SysMenu> cMenus = menu.getChildren();
|
|
|
|
|
if (!cMenus.isEmpty() && UserConstants.TYPE_DIR.equals(menu.getMenuType())) {
|
|
|
|
|
router.setAlwaysShow(true);
|
|
|
|
@ -155,7 +155,7 @@ public class SysMenuServiceImpl implements ISysMenuService {
|
|
|
|
|
children.setPath(menu.getPath());
|
|
|
|
|
children.setComponent(menu.getComponent());
|
|
|
|
|
children.setName(StringUtils.capitalize(menu.getPath()));
|
|
|
|
|
children.setMeta(new MetaVo(menu.getMenuName(), menu.getIcon(), 1 == menu.getIsCache(), menu.getPath()));
|
|
|
|
|
children.setMeta(new MetaVo(menu.getMenuName(), menu.getIcon(), StringUtils.equals("1", menu.getIsCache()), menu.getPath()));
|
|
|
|
|
children.setQuery(menu.getQueryParam());
|
|
|
|
|
childrenList.add(children);
|
|
|
|
|
router.setChildren(childrenList);
|
|
|
|
|