【menu】修复一个auth为空应为null的bug

pull/3/head
fengshuonan 2021-01-12 18:46:43 +08:00
parent 05a3154861
commit 51fd74b889
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ public class AntdMenusFactory {
// 填充哪个角色绑定了这个菜单
List<SimpleRoleInfo> roles = antdSysMenuResponse.getRoles();
AuthorityItem authorityItem = new AuthorityItem();
if (roles != null) {
if (roles != null && roles.size() > 0) {
ArrayList<String> auths = new ArrayList<>();
for (SimpleRoleInfo role : roles) {
auths.add(role.getRoleCode());