排除frontjs的监控

This commit is contained in:
aixianling
2023-02-10 18:19:34 +08:00
parent e977b079a8
commit 29db1a13cc

View File

@@ -20,7 +20,7 @@ class Observer {
error: item.response?.code != 0 ? item.response?.data : null, error: item.response?.code != 0 ? item.response?.data : null,
device: navigator.userAgent device: navigator.userAgent
} }
if (!/(sockjs-node|hot-update|monitorApi)/.test(api.path)) { if (!/(sockjs-node|hot-update|monitorApi|frontjs)/.test(api.path)) {
if (!!this.timer) { if (!!this.timer) {
clearTimeout(this.timer) clearTimeout(this.timer)
} }