|
|
@ -54,6 +54,7 @@ public class MenuInjector extends RequestInterceptor {
|
|
|
|
String respType = getRespType(hreq, mav);
|
|
|
|
String respType = getRespType(hreq, mav);
|
|
|
|
if (!isActive(respType)) return;
|
|
|
|
if (!isActive(respType)) return;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
log().debug("Injecting userMenus...");
|
|
|
|
List<DataObject> menus = menuService.getUserMenus();
|
|
|
|
List<DataObject> menus = menuService.getUserMenus();
|
|
|
|
Object resp = respType.startsWith("json") ? menus : toJson(menus);
|
|
|
|
Object resp = respType.startsWith("json") ? menus : toJson(menus);
|
|
|
|
mav.addObject("userMenus", resp);
|
|
|
|
mav.addObject("userMenus", resp);
|
|
|
|