实现WAF部分功能

This commit is contained in:
刘祥超
2020-10-07 11:18:07 +08:00
parent 088b2b36a6
commit 62b9ab9f5d
23 changed files with 559 additions and 9 deletions

View File

@@ -158,6 +158,22 @@ window.teaweb = {
}
});
},
successToast: function (message, timeout) {
if (timeout == null) {
timeout = 2000
}
var width = "20em";
if (message.length > 30) {
width = "30em";
}
Swal.fire({
text: message,
icon: "success",
width: width,
timer: timeout,
showConfirmButton: false
});
},
warn: function (message, callback) {
var width = "20em";
if (message.length > 30) {