diff --git a/kernel-s-system/system-business-menu/src/main/java/cn/stylefeng/roses/kernel/system/modular/menu/entity/SysMenu.java b/kernel-s-system/system-business-menu/src/main/java/cn/stylefeng/roses/kernel/system/modular/menu/entity/SysMenu.java index 48b268518..2199f2e25 100644 --- a/kernel-s-system/system-business-menu/src/main/java/cn/stylefeng/roses/kernel/system/modular/menu/entity/SysMenu.java +++ b/kernel-s-system/system-business-menu/src/main/java/cn/stylefeng/roses/kernel/system/modular/menu/entity/SysMenu.java @@ -149,6 +149,12 @@ public class SysMenu extends BaseEntity implements AbstractTreeNode { @TableField("antdv_link_url") private String antdvLinkUrl; + /** + * 用于非菜单显示页面的重定向url设置 + */ + @TableField("antdv_uid_url") + private String antdvUidUrl; + /** * 是否删除:Y-被删除,N-未删除 */ diff --git a/kernel-s-system/system-business-menu/src/main/java/cn/stylefeng/roses/kernel/system/modular/menu/factory/AntdMenusFactory.java b/kernel-s-system/system-business-menu/src/main/java/cn/stylefeng/roses/kernel/system/modular/menu/factory/AntdMenusFactory.java index da75de4e8..be01453d3 100644 --- a/kernel-s-system/system-business-menu/src/main/java/cn/stylefeng/roses/kernel/system/modular/menu/factory/AntdMenusFactory.java +++ b/kernel-s-system/system-business-menu/src/main/java/cn/stylefeng/roses/kernel/system/modular/menu/factory/AntdMenusFactory.java @@ -93,7 +93,7 @@ public class AntdMenusFactory { antdvMenuItem.setPath(sysMenu.getAntdvRouter()); antdvMenuItem.setComponent(sysMenu.getAntdvComponent()); antdvMenuItem.setHide(YesOrNotEnum.N.getCode().equals(sysMenu.getVisible())); - antdvMenuItem.setUid(null); + antdvMenuItem.setUid(sysMenu.getAntdvUidUrl()); if (ObjectUtil.isNotEmpty(sysMenu.getChildren())) { antdvMenuItem.setChildren(doModelTransfer(sysMenu.getChildren())); } diff --git a/kernel-s-system/system-business-menu/src/main/java/cn/stylefeng/roses/kernel/system/modular/menu/service/impl/SysMenuServiceImpl.java b/kernel-s-system/system-business-menu/src/main/java/cn/stylefeng/roses/kernel/system/modular/menu/service/impl/SysMenuServiceImpl.java index 460cf444e..a36eb4e67 100644 --- a/kernel-s-system/system-business-menu/src/main/java/cn/stylefeng/roses/kernel/system/modular/menu/service/impl/SysMenuServiceImpl.java +++ b/kernel-s-system/system-business-menu/src/main/java/cn/stylefeng/roses/kernel/system/modular/menu/service/impl/SysMenuServiceImpl.java @@ -281,6 +281,7 @@ public class SysMenuServiceImpl extends ServiceImpl impl SysMenu::getAntdvRouter, SysMenu::getAntdvComponent, SysMenu::getVisible, + SysMenu::getAntdvUidUrl, SysMenu::getMenuId, SysMenu::getMenuParentId); wrapper.eq(SysMenu::getStatusFlag, StatusEnum.ENABLE.getCode());