From 09b26e9308e155cf6d4b57af25ee4729020bfbe5 Mon Sep 17 00:00:00 2001 From: Argo Date: Thu, 18 Jul 2019 16:43:50 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E7=88=B6=E7=BA=A7=E8=8F=9C?= =?UTF-8?q?=E5=8D=95=E6=9F=A5=E8=AF=A2=E6=97=B6=E7=BB=93=E6=9E=9C=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E8=87=AA=E5=B7=B1=E4=B8=8E=E8=87=AA=E5=B7=B1=E7=9A=84?= =?UTF-8?q?=E5=AD=90=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bootstrap.Admin/Query/QueryMenuOption.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Bootstrap.Admin/Query/QueryMenuOption.cs b/Bootstrap.Admin/Query/QueryMenuOption.cs index 9539721b..de8214c9 100644 --- a/Bootstrap.Admin/Query/QueryMenuOption.cs +++ b/Bootstrap.Admin/Query/QueryMenuOption.cs @@ -1,4 +1,4 @@ -using Bootstrap.DataAccess; +using Bootstrap.DataAccess; using Longbow.Web.Mvc; using System; using System.Linq; @@ -45,7 +45,7 @@ namespace Bootstrap.Admin.Query var data = MenuHelper.RetrieveMenusByUserName(userName); if (!string.IsNullOrEmpty(ParentName)) { - data = data.Where(t => t.ParentName != null && t.ParentName.Contains(ParentName)); + data = data.Where(t => t.Name.Contains(ParentName) || (t.ParentName != null && t.ParentName.Contains(ParentName))); } if (!string.IsNullOrEmpty(Name)) { @@ -107,4 +107,4 @@ namespace Bootstrap.Admin.Query return ret; } } -} \ No newline at end of file +}