调整统计角度

This commit is contained in:
aixianling
2023-02-10 18:40:04 +08:00
parent 29db1a13cc
commit 695b30855e

View File

@@ -15,12 +15,12 @@ class Observer {
path: item.url, path: item.url,
url: location.href, url: location.href,
nodeProcess: process.env.NODE_ENV, nodeProcess: process.env.NODE_ENV,
status: item.status, status: item.response?.code || item.status,
code: item.response?.code, code: item.response?.code,
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|frontjs)/.test(api.path)) { if (!/(sockjs-node|hot-update|monitorApi|frontjs|apiForward)/.test(api.path)) {
if (!!this.timer) { if (!!this.timer) {
clearTimeout(this.timer) clearTimeout(this.timer)
} }