创建网站服务时强制填写域名/优化源站未填写时交互

This commit is contained in:
GoEdgeLab
2022-05-07 20:26:40 +08:00
parent fefb46c77e
commit ce497e8822
4 changed files with 44 additions and 15 deletions

View File

@@ -397,9 +397,9 @@ window.teaweb = {
})
},
warn: function (message, callback) {
var width = "20em";
var width = "20em"
if (message.length > 30) {
width = "30em";
width = "30em"
}
Swal.fire({
text: message,
@@ -415,16 +415,16 @@ window.teaweb = {
onAfterClose: function () {
if (typeof (callback) == "function") {
setTimeout(function () {
callback();
});
callback()
})
}
}
});
})
},
confirm: function (message, callback) {
let width = "20em";
let width = "20em"
if (message.length > 30) {
width = "30em";
width = "30em"
}
let config = {
confirmButtonText: "确定",
@@ -441,7 +441,7 @@ window.teaweb = {
width: width,
preConfirm: function () {
if (typeof (callback) == "function") {
callback.call(Tea.Vue);
callback.call(Tea.Vue)
}
}
}