diff --git a/blade-service/blade-system/src/main/java/org/springblade/system/controller/MenuController.java b/blade-service/blade-system/src/main/java/org/springblade/system/controller/MenuController.java index acee4c24..a611cc57 100644 --- a/blade-service/blade-system/src/main/java/org/springblade/system/controller/MenuController.java +++ b/blade-service/blade-system/src/main/java/org/springblade/system/controller/MenuController.java @@ -219,7 +219,10 @@ public class MenuController extends BladeController { @GetMapping("/top-menu") @ApiOperationSupport(order = 12) @ApiOperation(value = "顶部菜单数据", notes = "顶部菜单数据") - public R> topMenu() { + public R> topMenu(BladeUser user) { + if (Func.isEmpty(user)) { + return null; + } List list = topMenuService.list(); return R.data(list); }