排除frontjs的监控

This commit is contained in:
aixianling
2023-02-10 18:19:35 +08:00
parent 5dba18c789
commit 604faa38ab

View File

@@ -20,7 +20,7 @@ class Observer {
error: item.response?.code != 0 ? item.response?.data : null,
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) {
clearTimeout(this.timer)
}