永星-优化前端请求

master
chenzhi 5 years ago
parent a629654ccb
commit 2229e16a9d

@ -326,11 +326,13 @@
dataType: "json",
data: { id:id },
success: function (result) {
layer.msg(result.msg);
poolCount(result.data.pool_id);
setTimeout(function () {
location.reload();
}, 1000);
poolCount(result.data.pool_id,function(){
layer.msg(result.msg);
setTimeout(function () {
location.reload();
}, 1000);
});
},
error: function () {
@ -340,7 +342,7 @@
});
function poolCount(pool_id) {
function poolCount(pool_id,callback) {
$.ajax({
async: false,
@ -349,6 +351,7 @@
dataType: "json",
data: { poolid:pool_id },
success: function (result) {
callback();
},
error: function () {
}

Loading…
Cancel
Save