Browse Source

优化顶部菜单逻辑

test v2.0.5.release
smallchill 6 years ago
parent
commit
d3763ee35a
  1. 5
      blade-service/blade-system/src/main/java/org/springblade/system/controller/MenuController.java

5
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<List<TopMenu>> topMenu() {
public R<List<TopMenu>> topMenu(BladeUser user) {
if (Func.isEmpty(user)) {
return null;
}
List<TopMenu> list = topMenuService.list();
return R.data(list);
}

Loading…
Cancel
Save