mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-04 21:50:28 +08:00
初步实现安装界面
This commit is contained in:
@@ -138,8 +138,8 @@ window.teaweb = {
|
||||
if (message.length > 30) {
|
||||
width = "30em";
|
||||
}
|
||||
Swal.fire({
|
||||
text: message,
|
||||
|
||||
let config = {
|
||||
confirmButtonText: "确定",
|
||||
buttonsStyling: false,
|
||||
icon: "success",
|
||||
@@ -154,9 +154,19 @@ window.teaweb = {
|
||||
setTimeout(function () {
|
||||
callback();
|
||||
});
|
||||
} else if (typeof (callback) == "string") {
|
||||
window.location = callback
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
if (message.startsWith("html:")) {
|
||||
config.html = message.substring(5)
|
||||
} else {
|
||||
config.text = message
|
||||
}
|
||||
|
||||
Swal.fire(config);
|
||||
},
|
||||
successToast: function (message, timeout) {
|
||||
if (timeout == null) {
|
||||
|
||||
Reference in New Issue
Block a user