diff --git a/COMCMS.Web/Areas/AdminCP/Views/Member/AddAdmin.cshtml b/COMCMS.Web/Areas/AdminCP/Views/Member/AddAdmin.cshtml index 75061b6..c617fc4 100644 --- a/COMCMS.Web/Areas/AdminCP/Views/Member/AddAdmin.cshtml +++ b/COMCMS.Web/Areas/AdminCP/Views/Member/AddAdmin.cshtml @@ -2,7 +2,7 @@ @{ ViewBag.title = "添加管理员"; } -
+
@ViewBag.title
diff --git a/COMCMS.Web/Areas/AdminCP/Views/Member/Admins.cshtml b/COMCMS.Web/Areas/AdminCP/Views/Member/Admins.cshtml index 243fc8e..0b1b86c 100644 --- a/COMCMS.Web/Areas/AdminCP/Views/Member/Admins.cshtml +++ b/COMCMS.Web/Areas/AdminCP/Views/Member/Admins.cshtml @@ -32,7 +32,7 @@
-
diff --git a/COMCMS.Web/Areas/AdminCP/Views/Member/EditAdmin.cshtml b/COMCMS.Web/Areas/AdminCP/Views/Member/EditAdmin.cshtml index d9930df..b9994e6 100644 --- a/COMCMS.Web/Areas/AdminCP/Views/Member/EditAdmin.cshtml +++ b/COMCMS.Web/Areas/AdminCP/Views/Member/EditAdmin.cshtml @@ -2,7 +2,7 @@ @{ ViewBag.title = "查看/编辑管理员"; } -
+
@ViewBag.Title
@@ -10,7 +10,7 @@
- @using (Html.BeginForm(null, null, FormMethod.Post, new { id = "eidtAdminForm", @class = "form-horizontal m-t" })) + @using (Html.BeginForm(null, null, FormMethod.Post, new { id = "editAdminForm", @class = "form-horizontal m-t" })) {
diff --git a/COMCMS.Web/Common/AdminUtils.cs b/COMCMS.Web/Common/AdminUtils.cs index ab7d5b1..5fc391b 100644 --- a/COMCMS.Web/Common/AdminUtils.cs +++ b/COMCMS.Web/Common/AdminUtils.cs @@ -34,7 +34,7 @@ namespace COMCMS.Web.Common if (string.IsNullOrEmpty(my.Roles.Powers)) return false; IList listevents = JsonConvert.DeserializeObject>(my.Roles.Powers); - if (listevents == null || listevents.Count > 0) + if (listevents == null || listevents.Count <= 0) { return false; }