This commit is contained in:
yanran200730
2023-02-13 18:08:35 +08:00
2 changed files with 18 additions and 18 deletions

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],