mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-16 15:28:38 +00:00
perf: 优化频繁发送短信,将后端的频繁发送警告提示到页面上来提醒用户
This commit is contained in:
@@ -118,11 +118,18 @@
|
||||
})
|
||||
}
|
||||
|
||||
function onError (responseText, responseJson, status) {
|
||||
setTimeout(function () {
|
||||
toastr.error(responseJson.detail);
|
||||
});
|
||||
};
|
||||
|
||||
requestApi({
|
||||
url: url,
|
||||
method: "POST",
|
||||
body: JSON.stringify(data),
|
||||
success: onSuccess,
|
||||
error: onError,
|
||||
flash_message: false
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user