mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-06 23:00:25 +08:00
初步实现多集群共享节点
This commit is contained in:
@@ -317,6 +317,27 @@ window.teaweb = {
|
||||
|
||||
Swal.fire(config);
|
||||
},
|
||||
toast: function (message, timeout, callback) {
|
||||
if (timeout == null) {
|
||||
timeout = 2000
|
||||
}
|
||||
var width = "20em";
|
||||
if (message.length > 30) {
|
||||
width = "30em";
|
||||
}
|
||||
Swal.fire({
|
||||
text: message,
|
||||
icon: "info",
|
||||
width: width,
|
||||
timer: timeout,
|
||||
showConfirmButton: false,
|
||||
onAfterClose: function () {
|
||||
if (typeof callback == "function") {
|
||||
callback()
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
successToast: function (message, timeout, callback) {
|
||||
if (timeout == null) {
|
||||
timeout = 2000
|
||||
|
||||
Reference in New Issue
Block a user