diff --git a/Bootstrap.Admin/Models/NavigatorBarModel.cs b/Bootstrap.Admin/Models/NavigatorBarModel.cs
index d365134f..c83f8d5a 100644
--- a/Bootstrap.Admin/Models/NavigatorBarModel.cs
+++ b/Bootstrap.Admin/Models/NavigatorBarModel.cs
@@ -9,7 +9,7 @@ namespace Bootstrap.Admin.Models
{
public NavigatorBarModel(string url)
{
- Navigations = MenuHelper.RetrieveNavigationsByUserName(UserName);
+ Navigations = MenuHelper.RetrieveNavigationsByUserName(UserName).Where(m => m.IsResource == 0);
ActiveMenu(null, Navigations.ToList(), url);
HomeUrl = "~/Admin/Index";
}
diff --git a/Bootstrap.Admin/Scripts/Menus.js b/Bootstrap.Admin/Scripts/Menus.js
index 9fb26e1b..1cef713e 100644
--- a/Bootstrap.Admin/Scripts/Menus.js
+++ b/Bootstrap.Admin/Scripts/Menus.js
@@ -33,7 +33,8 @@
Icon: "icon",
Url: "url",
Category: "category",
- Target: "target"
+ Target: "target",
+ IsResource: "isRes"
}
}),
click: {
diff --git a/Bootstrap.Admin/Views/Admin/Menus.cshtml b/Bootstrap.Admin/Views/Admin/Menus.cshtml
index 34b06bf4..0e528d5e 100644
--- a/Bootstrap.Admin/Views/Admin/Menus.cshtml
+++ b/Bootstrap.Admin/Views/Admin/Menus.cshtml
@@ -135,6 +135,20 @@
+
diff --git a/Bootstrap.DataAccess/Menu.cs b/Bootstrap.DataAccess/Menu.cs
index ad9d5552..9471e2e6 100644
--- a/Bootstrap.DataAccess/Menu.cs
+++ b/Bootstrap.DataAccess/Menu.cs
@@ -52,6 +52,10 @@ namespace Bootstrap.DataAccess
///
public string Target { get; set; }
///
+ /// 获得/设置 是否为资源文件
+ ///
+ public int IsResource { get; set; }
+ ///
///
///
public IEnumerable