实时访问日志有弹窗打开时,暂时不更新数据

This commit is contained in:
刘祥超
2022-12-10 19:01:57 +08:00
parent aa01512f89
commit 5ebe3bb8e0
2 changed files with 11 additions and 0 deletions

View File

@@ -353,6 +353,9 @@ window.teaweb = {
Swal: function () {
return this.isPopup() ? window.parent.Swal : window.Swal;
},
hasPopup: function () {
return document.getElementsByClassName("swal2-container").length > 0
},
success: function (message, callback) {
var width = "20em";
if (message.length > 30) {