Commit fa1da400 by guojuxing

登录报错修改

parent 3d09582d
......@@ -113,6 +113,7 @@ public class LoginController {
List<MenuInfo> menuInfoList = EntityUtil.changeEntityListNew(MenuInfo.class, menuList);
Map<String, Object> map = new HashMap<>(16);
Map<String, MenuInfo> moduleMap = new HashMap<>(16);
if (CollectionUtils.isNotEmpty(menuInfoList)) {
for (MenuInfo menuDTO : menuInfoList) {
if (StringUtils.isBlank(menuDTO.getMenuUrl())) {
continue;
......@@ -120,6 +121,7 @@ public class LoginController {
moduleMap.put(menuDTO.getProjectUrlForWeb() + menuDTO.getMenuUrl(), menuDTO);
map.put(menuDTO.getMenuUrl(), menuDTO);
}
}
userDetail.setMenuInfoList(menuInfoList);
userDetail.setMenuUrlMap(map);
userDetail.setModuleUrlMap(moduleMap);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment