mirror of https://gitee.com/xiaonuobase/snowy
fix: 解决[一个方法上注解了多个路由路径时, 权限授权页面只显示多个里面的第一个]的问题
parent
2f539e915e
commit
48a175ea3d
|
@ -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));
|
||||
}
|
||||
}
|
||||
}));
|
||||
|
|
Loading…
Reference in New Issue