From 955c3b46ef06e0ca18dd70182b4ac96af2208d1c Mon Sep 17 00:00:00 2001 From: wanggeng <450292408@qq.com> Date: Tue, 9 Nov 2021 22:19:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E7=BB=91=E5=AE=9A=E8=8F=9C?= =?UTF-8?q?=E5=8D=95=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../oauth2/server/service/impl/OAuth2ClientServiceImpl.java | 2 +- .../src/main/resources/templates/oauth2client/list.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/login-oauth2-server/src/main/java/ink/wgink/login/oauth2/server/service/impl/OAuth2ClientServiceImpl.java b/login-oauth2-server/src/main/java/ink/wgink/login/oauth2/server/service/impl/OAuth2ClientServiceImpl.java index dba714e8..43d821f6 100644 --- a/login-oauth2-server/src/main/java/ink/wgink/login/oauth2/server/service/impl/OAuth2ClientServiceImpl.java +++ b/login-oauth2-server/src/main/java/ink/wgink/login/oauth2/server/service/impl/OAuth2ClientServiceImpl.java @@ -78,7 +78,7 @@ public class OAuth2ClientServiceImpl extends DefaultBaseService implements IOAut throw new UpdateException("菜单已经绑定", true); } Map params = getHashMap(2); - if (StringUtils.isBlank(oauth2ClientPO.getMenuId())) { + if (StringUtils.isBlank(menuId)) { LOG.debug("菜单为空,创建菜单:{}", oauth2ClientPO.getClientName()); MenuVO menuVO = new MenuVO(); menuVO.setMenuParentId("0"); diff --git a/login-oauth2-server/src/main/resources/templates/oauth2client/list.html b/login-oauth2-server/src/main/resources/templates/oauth2client/list.html index 329b8606..d6087657 100644 --- a/login-oauth2-server/src/main/resources/templates/oauth2client/list.html +++ b/login-oauth2-server/src/main/resources/templates/oauth2client/list.html @@ -257,7 +257,7 @@ yes: function (index) { top.dialog.close(index); var layIndex; - top.restAjax.put(top.restAjax.path('api/oauth2client/update-menu-init/{clientId}?menuId={menuId}', [clientId, menuId]), {}, null, function (code, data) { + top.restAjax.put(top.restAjax.path('api/oauth2client/update-menu-init/{clientId}?menuId={menuId}', [clientId, menuId ? menuId : '']), {}, null, function (code, data) { top.dialog.msg(successMessage, {time: 1000}); reloadTable(); }, function (code, data) {