fix 修复 系统菜单 component 属性get方法被覆盖问题

This commit is contained in:
疯狂的狮子li 2023-02-03 11:42:53 +08:00
parent 922a8345e2
commit 296437569c
2 changed files with 3 additions and 3 deletions

View File

@ -127,7 +127,7 @@ public class SysMenu extends TreeEntity<SysMenu> {
/**
* 获取组件信息
*/
public String getComponent() {
public String getComponentInfo() {
String component = UserConstants.LAYOUT;
if (StringUtils.isNotEmpty(this.component) && !isMenuFrame()) {
component = this.component;

View File

@ -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());