Merge pull request '更新 Admin.NET/Admin.NET.Core/Service/Role/SysRoleService.cs' (#162) from IMaster/Admin.NET.Pro:main into main
Reviewed-on: http://101.43.53.74:3000/Admin.NET/Admin.NET.Pro/pulls/162
This commit is contained in:
commit
8210fe8753
@ -312,6 +312,14 @@ public class SysRoleService : IDynamicApiController, ITransient
|
|||||||
foreach (var controller in apiOutput.Children)
|
foreach (var controller in apiOutput.Children)
|
||||||
apiList[0].AddRange(controller.Children.Select(u => u.Route));
|
apiList[0].AddRange(controller.Children.Select(u => u.Route));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 按钮权限集合
|
||||||
|
var allButtonList = await GetButtonList(new());
|
||||||
|
|
||||||
|
// 没有对应接口的按钮集合
|
||||||
|
var diffList = allButtonList.Except(apiList[0]).ToList();
|
||||||
|
|
||||||
|
apiList[0].AddRange(diffList);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user