diff --git a/plugins/mysql/js/mysql.js b/plugins/mysql/js/mysql.js index 466147187..e73d0b8db 100755 --- a/plugins/mysql/js/mysql.js +++ b/plugins/mysql/js/mysql.js @@ -1545,13 +1545,9 @@ function getMasterRepSlaveUserCmd(username, db=''){ function delMasterRepSlaveUser(username){ myPost('del_master_rep_slave_user', {username:username}, function(data){ var rdata = $.parseJSON(data.data); - layer.msg(rdata.msg); - - $('.layui-layer-close1').click(); - - setTimeout(function(){ + showMsg(rdata.msg, function(){ getMasterRepSlaveList(); - },1000); + },{icon: rdata.status ? 1 : 2},1000) }); }