初步实现安装界面

This commit is contained in:
GoEdgeLab
2020-10-13 20:05:29 +08:00
parent fe432e9a8f
commit 2c9fffa4db
37 changed files with 1207 additions and 56 deletions

View File

@@ -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) {