mirror of
https://gitee.com/zhijiantianya/yudao-cloud.git
synced 2025-12-26 07:06:24 +08:00
!201 fix 修复菜单组件名重复校验不严谨问题
Merge pull request !201 from 我是阿志吖/master-jdk17
This commit is contained in:
commit
1ad76857b3
@ -278,10 +278,6 @@ public class MenuServiceImpl implements MenuService {
|
||||
if (menu == null) {
|
||||
return;
|
||||
}
|
||||
// 如果 id 为空,说明不用比较是否为相同 id 的菜单
|
||||
if (id == null) {
|
||||
return;
|
||||
}
|
||||
if (!menu.getId().equals(id)) {
|
||||
throw exception(MENU_COMPONENT_NAME_DUPLICATE);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user