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

This commit is contained in:
GoEdgeLab
2022-12-10 19:01:57 +08:00
parent a21e6b0845
commit abdc6c82eb
2 changed files with 11 additions and 0 deletions

View File

@@ -8,6 +8,14 @@ Tea.context(function () {
this.isLoaded = false
this.load = function () {
// 如果有弹窗时,暂时不更新
if (teaweb.hasPopup()) {
this.$delay(function () {
this.load()
}, 5000)
return
}
this.$post("$")
.params({
serverId: this.serverId,