feat: 菜单增加按应用排序
This commit is contained in:
parent
184b0e2a14
commit
ec83350830
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue