【修复】获取菜单精简信息列表接口没有排除父 ID 非 0 的节点
This commit is contained in:
parent
1c7ba5c0d6
commit
7deaf1cdbf
|
@ -112,7 +112,6 @@ public class AuthController {
|
||||||
// 过滤掉关闭的菜单
|
// 过滤掉关闭的菜单
|
||||||
menuList = menuService.filterClosedMenus(menuList);
|
menuList = menuService.filterClosedMenus(menuList);
|
||||||
|
|
||||||
menuList.removeIf(menu -> !CommonStatusEnum.ENABLE.getStatus().equals(menu.getStatus())); // 移除禁用的菜单
|
|
||||||
// 2. 拼接结果返回
|
// 2. 拼接结果返回
|
||||||
return success(AuthConvert.INSTANCE.convert(user, roles, menuList));
|
return success(AuthConvert.INSTANCE.convert(user, roles, menuList));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue