修改BUG:初始化层次菜单未加载子菜单

This commit is contained in:
Argo-Surface 2019-02-23 12:43:55 +08:00
parent c59ac37185
commit bfd0177048
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ namespace Bootstrap.Client.DataAccess
/// <returns></returns>
public static IEnumerable<BootstrapMenu> RetrieveAppMenus(string userName, string activeUrl)
{
var menus = RetrieveAllMenus(userName).Where(m => m.Category == "1" && m.IsResource == 0 && m.Application == ConfigurationManager.AppSettings["AppId"]).Where(m => m.ParentId == "0").OrderBy(m => m.Application).ThenBy(m => m.Order);
var menus = RetrieveAllMenus(userName).Where(m => m.Category == "1" && m.IsResource == 0 && m.Application == ConfigurationManager.AppSettings["AppId"]);
return DbHelper.CascadeMenus(menus, activeUrl);
}