处理绑定菜单的问题
This commit is contained in:
parent
99f2ee2088
commit
955c3b46ef
@ -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");
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user