😎修复授权角色接口资源bug
This commit is contained in:
parent
af2fd572d5
commit
2e3149a028
@ -27,7 +27,7 @@ public class SysRoleApiService : ITransient
|
|||||||
{
|
{
|
||||||
await _sysRoleApiRep.DeleteAsync(u => u.RoleId == input.Id);
|
await _sysRoleApiRep.DeleteAsync(u => u.RoleId == input.Id);
|
||||||
|
|
||||||
var roleApis = input.ApiList.Select(u => new SysRoleApi
|
var roleApis = input.ApiList.Where(u => !string.IsNullOrWhiteSpace(u)).Select(u => new SysRoleApi
|
||||||
{
|
{
|
||||||
RoleId = input.Id,
|
RoleId = input.Id,
|
||||||
Route = u
|
Route = u
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user