Commit b3d6d498 by guojuxing

删除菜单文案修复

parent 2fb75a1c
...@@ -424,7 +424,7 @@ public class MenuApiServiceImpl implements MenuApiService { ...@@ -424,7 +424,7 @@ public class MenuApiServiceImpl implements MenuApiService {
if (record.getMenuType().intValue() == MenuTypeEnum.PAGE.getCode()) { if (record.getMenuType().intValue() == MenuTypeEnum.PAGE.getCode()) {
//如果是页面,判断下面是否有子页面 //如果是页面,判断下面是否有子页面
if (menuService.isHasChild(menuId)) { if (menuService.isHasChild(menuId)) {
return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "页面下有项目,不允许删除页面"); return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "页面下有项目,不允许删除页面");
} }
} else if (record.getMenuType().intValue() == MenuTypeEnum.ROLE.getCode()) { } else if (record.getMenuType().intValue() == MenuTypeEnum.ROLE.getCode()) {
//权限项,需要同时删除关联表 //权限项,需要同时删除关联表
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment