【修复】获取菜单精简信息列表接口没有排除父 ID 非 0 的节点

This commit is contained in:
dongdong.xiang 2024-06-16 22:45:02 +08:00
parent 1c7ba5c0d6
commit 7deaf1cdbf

View File

@ -112,7 +112,6 @@ public class AuthController {
// 过滤掉关闭的菜单
menuList = menuService.filterClosedMenus(menuList);
menuList.removeIf(menu -> !CommonStatusEnum.ENABLE.getStatus().equals(menu.getStatus())); // 移除禁用的菜单
// 2. 拼接结果返回
return success(AuthConvert.INSTANCE.convert(user, roles, menuList));
}