mirror of
https://github.com/dromara/RuoYi-Vue-Plus.git
synced 2025-11-17 14:43:42 +08:00
fix 修复 系统菜单 component 属性get方法被覆盖问题
This commit is contained in:
@@ -163,7 +163,7 @@ public class SysMenuServiceImpl implements ISysMenuService {
|
||||
router.setHidden("1".equals(menu.getVisible()));
|
||||
router.setName(menu.getRouteName());
|
||||
router.setPath(menu.getRouterPath());
|
||||
router.setComponent(menu.getComponent());
|
||||
router.setComponent(menu.getComponentInfo());
|
||||
router.setQuery(menu.getQueryParam());
|
||||
router.setMeta(new MetaVo(menu.getMenuName(), menu.getIcon(), StringUtils.equals("1", menu.getIsCache()), menu.getPath()));
|
||||
List<SysMenu> cMenus = menu.getChildren();
|
||||
@@ -176,7 +176,7 @@ public class SysMenuServiceImpl implements ISysMenuService {
|
||||
List<RouterVo> childrenList = new ArrayList<>();
|
||||
RouterVo children = new RouterVo();
|
||||
children.setPath(menu.getPath());
|
||||
children.setComponent(menu.getComponent());
|
||||
children.setComponent(menu.getComponentInfo());
|
||||
children.setName(StringUtils.capitalize(menu.getPath()));
|
||||
children.setMeta(new MetaVo(menu.getMenuName(), menu.getIcon(), StringUtils.equals("1", menu.getIsCache()), menu.getPath()));
|
||||
children.setQuery(menu.getQueryParam());
|
||||
|
||||
Reference in New Issue
Block a user