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

pull/201/head
zhouhongzhi 2025-07-30 14:20:13 +08:00
parent b46f29e45f
commit 19ca4e7e89
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);
}