diff --git a/Bootstrap.Admin/wwwroot/js/roles.js b/Bootstrap.Admin/wwwroot/js/roles.js
index 847a1e07..226f0ff1 100644
--- a/Bootstrap.Admin/wwwroot/js/roles.js
+++ b/Bootstrap.Admin/wwwroot/js/roles.js
@@ -66,7 +66,7 @@ $(function () {
var menus = $nestMenu.find('input:checkbox');
menus.prop('checked', false);
$.each(result, function (index, item) {
- var selector = $.format('[value={0}]', item.Id);
+ var selector = $.format('[value={0}]', item);
menus.filter(selector).prop('checked', true);
});
$dialogSubMenu.show();
diff --git a/Bootstrap.Client/Bootstrap.Client.csproj b/Bootstrap.Client/Bootstrap.Client.csproj
index 05216050..9d6d960e 100644
--- a/Bootstrap.Client/Bootstrap.Client.csproj
+++ b/Bootstrap.Client/Bootstrap.Client.csproj
@@ -13,6 +13,7 @@
+
diff --git a/Bootstrap.Client/Startup.cs b/Bootstrap.Client/Startup.cs
index e3681e4c..c558aa90 100644
--- a/Bootstrap.Client/Startup.cs
+++ b/Bootstrap.Client/Startup.cs
@@ -89,7 +89,7 @@ namespace Bootstrap.Client
app.UseStaticFiles();
app.UseCookiePolicy();
app.UseBootstrapAdminAuthentication();
- app.UseCacheManagerCorsHandler();
+ app.UseCacheManager();
app.UseSignalR(routes => { routes.MapHub("/NotiHub"); });
app.UseMvc(routes =>
{
diff --git a/Bootstrap.DataAccess.MongoDB/Menu.cs b/Bootstrap.DataAccess.MongoDB/Menu.cs
index f4f3f077..af546032 100644
--- a/Bootstrap.DataAccess.MongoDB/Menu.cs
+++ b/Bootstrap.DataAccess.MongoDB/Menu.cs
@@ -6,12 +6,12 @@ using System.Linq;
namespace Bootstrap.DataAccess.MongoDB
{
///
- ///
+ /// 菜单实体类
///
public class Menu : DataAccess.Menu
{
///
- ///
+ /// 获取指定用户的所有菜单
///
///
///
@@ -29,7 +29,7 @@ namespace Bootstrap.DataAccess.MongoDB
}
///
- ///
+ /// 保存菜单
///
///
///
@@ -58,7 +58,7 @@ namespace Bootstrap.DataAccess.MongoDB
}
///
- ///
+ /// 删除菜单
///
///
///
@@ -74,14 +74,14 @@ namespace Bootstrap.DataAccess.MongoDB
}
///
- ///
+ /// 获取指定角色相关菜单
///
///
///
- public override IEnumerable