!201 fix 修复菜单组件名重复校验不严谨问题

Merge pull request !201 from 我是阿志吖/master-jdk17
pull/204/MERGE
芋道源码 2025-08-09 02:13:15 +00:00 committed by Gitee
commit 1ad76857b3
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 0 additions and 4 deletions

View File

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