fix: 解决[一个方法上注解了多个路由路径时, 权限授权页面只显示多个里面的第一个]的问题

pull/151/head
gosk 2023-08-15 19:38:15 +09:00
parent 2f539e915e
commit 48a175ea3d
1 changed files with 2 additions and 1 deletions

View File

@ -422,7 +422,8 @@ public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> impl
apiName = annotationValue;
}
}
permissionResult.add(patternsCondition.getPatterns().iterator().next() + StrUtil.BRACKET_START + apiName + StrUtil.BRACKET_END);
String nm = StrUtil.BRACKET_START + apiName + StrUtil.BRACKET_END;
patternsCondition.getPatterns().forEach(pt -> permissionResult.add(pt + nm));
}
}
}));