发现监控接口自我报错后停止监控

This commit is contained in:
aixianling
2023-02-13 10:55:56 +08:00
parent 993db9585e
commit 841c67b51d

View File

@@ -33,7 +33,7 @@ class Observer {
if (res?.code == 0) {
this.pending = []
}
})
}).catch(() => this.cancelOB = true)
}, 5000)
}
}
@@ -51,7 +51,7 @@ class Observer {
this.addEventListener("readystatechange", function () {
if (this.readyState === 4) {
// 请求后拦截
Observer.saveLog({
!this.cancelOB && Observer.saveLog({
url: args[1],
status: this.status,
method: args[0],