处理绑定菜单的问题

This commit is contained in:
wanggeng 2021-11-09 22:19:59 +08:00
parent 99f2ee2088
commit 955c3b46ef
2 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ public class OAuth2ClientServiceImpl extends DefaultBaseService implements IOAut
throw new UpdateException("菜单已经绑定", true);
}
Map<String, Object> params = getHashMap(2);
if (StringUtils.isBlank(oauth2ClientPO.getMenuId())) {
if (StringUtils.isBlank(menuId)) {
LOG.debug("菜单为空,创建菜单:{}", oauth2ClientPO.getClientName());
MenuVO menuVO = new MenuVO();
menuVO.setMenuParentId("0");

View File

@ -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) {