mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-05 14:20:25 +08:00
优化界面
This commit is contained in:
@@ -210,12 +210,11 @@ window.teaweb = {
|
||||
});
|
||||
},
|
||||
confirm: function (message, callback) {
|
||||
var width = "20em";
|
||||
let width = "20em";
|
||||
if (message.length > 30) {
|
||||
width = "30em";
|
||||
}
|
||||
Swal.fire({
|
||||
text: message,
|
||||
let config = {
|
||||
confirmButtonText: "确定",
|
||||
cancelButtonText: "取消",
|
||||
showCancelButton: true,
|
||||
@@ -233,7 +232,13 @@ window.teaweb = {
|
||||
callback.call(Tea.Vue);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
if (message.startsWith("html:")) {
|
||||
config.html = message.substring(5)
|
||||
} else {
|
||||
config.text = message
|
||||
}
|
||||
Swal.fire(config);
|
||||
},
|
||||
reload: function () {
|
||||
window.location.reload()
|
||||
|
||||
Reference in New Issue
Block a user