fix:【system 系统功能】修复菜单组件名重复校验不严谨问题 !201

This commit is contained in:
YunaiV
2025-08-09 10:14:49 +08:00
parent 0004f1f6fb
commit 3ca2981af3

View File

@@ -255,9 +255,6 @@ public class MenuServiceImpl implements MenuService {
return;
}
// 如果 id 为空,说明不用比较是否为相同 id 的菜单
if (id == null) {
throw exception(MENU_NAME_DUPLICATE);
}
if (!menu.getId().equals(id)) {
throw exception(MENU_NAME_DUPLICATE);
}