From 841c67b51d21f096dd6aa9be9e9259b11ce5d64c Mon Sep 17 00:00:00 2001 From: aixianling Date: Mon, 13 Feb 2023 10:55:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E7=8E=B0=E7=9B=91=E6=8E=A7=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E8=87=AA=E6=88=91=E6=8A=A5=E9=94=99=E5=90=8E=E5=81=9C?= =?UTF-8?q?=E6=AD=A2=E7=9B=91=E6=8E=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/lib/js/observer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/lib/js/observer.js b/ui/lib/js/observer.js index b90e9bd7..8b58fd63 100644 --- a/ui/lib/js/observer.js +++ b/ui/lib/js/observer.js @@ -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],