diff --git a/kernel-s-system/system-api/src/main/java/cn/stylefeng/roses/kernel/sys/api/factory/RoleBindPermissionFactory.java b/kernel-s-system/system-api/src/main/java/cn/stylefeng/roses/kernel/sys/api/factory/RoleBindPermissionFactory.java index f12d4c08e..923bd70cc 100644 --- a/kernel-s-system/system-api/src/main/java/cn/stylefeng/roses/kernel/sys/api/factory/RoleBindPermissionFactory.java +++ b/kernel-s-system/system-api/src/main/java/cn/stylefeng/roses/kernel/sys/api/factory/RoleBindPermissionFactory.java @@ -154,7 +154,7 @@ public class RoleBindPermissionFactory { } // 菜单是叶子节点,并且未选中,则设置应用也未选中 - if (!menuItem.getChecked()) { + if (menuItem.getLeafFlag() && !menuItem.getChecked()) { appItem.setChecked(false); return; }