From c38b5ef000a201a416f958b72333e02c6cdb3b4a Mon Sep 17 00:00:00 2001 From: "@changcode" Date: Thu, 20 Oct 2022 13:56:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20npm=20=E4=B8=8B=E9=92=BB=E6=8A=98?= =?UTF-8?q?=E7=BA=BF=E5=9B=BE=E5=88=87=E6=8D=A2=E6=95=B0=E6=8D=AE=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E9=94=99=E8=AF=AF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/charts2/charts/npm/NpmTrafficLine.vue | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/views/charts2/charts/npm/NpmTrafficLine.vue b/src/views/charts2/charts/npm/NpmTrafficLine.vue index e580ff95..b3ce4f6f 100644 --- a/src/views/charts2/charts/npm/NpmTrafficLine.vue +++ b/src/views/charts2/charts/npm/NpmTrafficLine.vue @@ -198,15 +198,15 @@ export default { this.mpackets = mpackets this.echartsInit(this.mpackets) } else if (t.type === 'sessions' && val === 'Sessions/s') { - const npmQuantity = _.cloneDeep(this.npmQuantity) - npmQuantity[0].data = t.sessionsRate.values ? t.sessionsRate.values : [] - npmQuantity.forEach((e, i) => { + const mpackets = _.cloneDeep(this.mpackets) + mpackets[0].data = t.sessionsRate.values ? t.sessionsRate.values : [] + mpackets.forEach((e, i) => { if (i !== 0) { e.show = false } }) - this.npmQuantity = npmQuantity - this.echartsInit(this.npmQuantity) + this.mpackets = mpackets + this.echartsInit(this.mpackets) } else if (t.type === 'establishLatencyMs' && val === 'establishLatencyMs') { const npmQuantity = _.cloneDeep(this.npmQuantity) npmQuantity[0].data = t.establishLatencyMsAvg.values ? t.establishLatencyMsAvg.values : [] @@ -223,7 +223,6 @@ export default { const npmQuantity = _.cloneDeep(this.npmQuantity) npmQuantity[1].data = t.httpResponseLatencyAvg.values ? t.httpResponseLatencyAvg.values : [] npmQuantity.forEach((e, i) => { - console.log(e) if (i !== 1) { e.show = false } else {