调整统计角度

This commit is contained in:
aixianling
2023-02-10 18:40:05 +08:00
parent 4d34b2ce98
commit 46246a8b78

View File

@@ -1,4 +1,4 @@
import http from "./http"
import http from "./request"
/**
* 观察者工具对象,用于前端接口监测
@@ -15,12 +15,12 @@ class Observer {
path: item.url,
url: location.href,
nodeProcess: process.env.NODE_ENV,
status: item.status,
status: item.response?.code || item.status,
code: item.response?.code,
error: item.response?.code != 0 ? item.response?.data : null,
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) {
clearTimeout(this.timer)
}