From d3763ee35a5c4bdeccbc6e83efeae6d8b644b691 Mon Sep 17 00:00:00 2001 From: smallchill Date: Wed, 17 Jul 2019 21:58:49 +0800 Subject: [PATCH] =?UTF-8?q?:zap:=20=E4=BC=98=E5=8C=96=E9=A1=B6=E9=83=A8?= =?UTF-8?q?=E8=8F=9C=E5=8D=95=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/springblade/system/controller/MenuController.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); }