发现监控接口自我报错后停止监控
This commit is contained in:
@@ -33,7 +33,7 @@ class Observer {
|
|||||||
if (res?.code == 0) {
|
if (res?.code == 0) {
|
||||||
this.pending = []
|
this.pending = []
|
||||||
}
|
}
|
||||||
})
|
}).catch(() => this.cancelOB = true)
|
||||||
}, 5000)
|
}, 5000)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -51,7 +51,7 @@ class Observer {
|
|||||||
this.addEventListener("readystatechange", function () {
|
this.addEventListener("readystatechange", function () {
|
||||||
if (this.readyState === 4) {
|
if (this.readyState === 4) {
|
||||||
// 请求后拦截
|
// 请求后拦截
|
||||||
Observer.saveLog({
|
!this.cancelOB && Observer.saveLog({
|
||||||
url: args[1],
|
url: args[1],
|
||||||
status: this.status,
|
status: this.status,
|
||||||
method: args[0],
|
method: args[0],
|
||||||
|
|||||||
Reference in New Issue
Block a user