mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-05 14:20:25 +08:00
实现WAF部分功能
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user