From d111a4b95c191cdd34eb84bf899496b62ce5ba23 Mon Sep 17 00:00:00 2001 From: aixianling Date: Mon, 13 Feb 2023 10:46:00 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E9=BB=98=E8=AE=A4=E7=9B=91=E8=A7=86?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E8=B0=83=E6=95=B4=E4=B8=BA30s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/index.html | 32 ++++++++++++++++---------------- ui/lib/js/observer.js | 2 +- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/public/index.html b/public/index.html index 6faf9027..d81c3251 100644 --- a/public/index.html +++ b/public/index.html @@ -1,19 +1,19 @@ - - - - - - web端应用库-展示页面 - - - - - -
- - + + + + + + web端应用库-展示页面 + + + + + +
+ + diff --git a/ui/lib/js/observer.js b/ui/lib/js/observer.js index b90e9bd7..78b2ea53 100644 --- a/ui/lib/js/observer.js +++ b/ui/lib/js/observer.js @@ -34,7 +34,7 @@ class Observer { this.pending = [] } }) - }, 5000) + }, 30000) } } From 870d2b27bcc853c18e0385c239984bddb0283791 Mon Sep 17 00:00:00 2001 From: aixianling Date: Mon, 13 Feb 2023 10:47:17 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E9=BB=98=E8=AE=A4=E7=9B=91=E8=A7=86?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E8=8A=82=E6=B5=815=E7=A7=92/=E6=AC=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/lib/js/observer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/lib/js/observer.js b/ui/lib/js/observer.js index 78b2ea53..b90e9bd7 100644 --- a/ui/lib/js/observer.js +++ b/ui/lib/js/observer.js @@ -34,7 +34,7 @@ class Observer { this.pending = [] } }) - }, 30000) + }, 5000) } } From 841c67b51d21f096dd6aa9be9e9259b11ce5d64c Mon Sep 17 00:00:00 2001 From: aixianling Date: Mon, 13 Feb 2023 10:55:56 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E5=8F=91=E7=8E=B0=E7=9B=91=E6=8E=A7?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E8=87=AA=E6=88=91=E6=8A=A5=E9=94=99=E5=90=8E?= =?UTF-8?q?=E5=81=9C=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],