From 18e65eda0acbc81d86e99104b682426ce36531e9 Mon Sep 17 00:00:00 2001 From: jinqiming <45981669@qq.com> Date: Wed, 6 Jan 2021 17:03:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=A7=92=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/system/SysRoleController.java | 1 + .../resources/templates/system/role/edit.html | 29 +------------------ .../resources/templates/system/role/role.html | 9 ------ 3 files changed, 2 insertions(+), 37 deletions(-) diff --git a/snow-admin/src/main/java/com/snow/web/controller/system/SysRoleController.java b/snow-admin/src/main/java/com/snow/web/controller/system/SysRoleController.java index d9c006a..86661f9 100644 --- a/snow-admin/src/main/java/com/snow/web/controller/system/SysRoleController.java +++ b/snow-admin/src/main/java/com/snow/web/controller/system/SysRoleController.java @@ -102,6 +102,7 @@ public class SysRoleController extends BaseController } role.setCreateBy(ShiroUtils.getLoginName()); ShiroUtils.clearCachedAuthorizationInfo(); + role.setParentId(0L); return toAjax(roleService.insertRole(role)); } diff --git a/snow-admin/src/main/resources/templates/system/role/edit.html b/snow-admin/src/main/resources/templates/system/role/edit.html index bbfb8ca..5d76744 100644 --- a/snow-admin/src/main/resources/templates/system/role/edit.html +++ b/snow-admin/src/main/resources/templates/system/role/edit.html @@ -8,16 +8,6 @@