feat: 菜单增加按应用排序

This commit is contained in:
Argo-Tianyi 2021-12-25 18:58:31 +08:00
parent 184b0e2a14
commit ec83350830
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ public partial class Menus
private Task<QueryData<Navigation>> OnQueryAsync(QueryPageOptions options)
{
var navs = NavigationService.GetAllMenus(AppContext.UserName);
var menus = navs.Where(m => m.ParentId == "0").OrderBy(m => m.Order);
var menus = navs.Where(m => m.ParentId == "0").OrderBy(m => m.Application).ThenBy(m => m.Order);
foreach (var item in menus)
{
item.HasChildren = navs.Any(i => i.ParentId == item.Id);