From fadfe1612e59a31e33e293a64566dbcb46d8cc1e Mon Sep 17 00:00:00 2001 From: "@changcode" Date: Thu, 15 Dec 2022 10:29:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=9B=A0tabIndex?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=B1=BB=E5=9E=8B=E6=94=B9=E5=8F=98=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E7=9A=84=20npm=E4=B8=8B=E9=92=BB=E7=BD=91=E7=BB=9C?= =?UTF-8?q?=E8=B4=A8=E9=87=8F=E6=A6=82=E8=A7=88=E5=9B=BE=E5=B1=95=E7=A4=BA?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/charts2/charts/npm/NpmNetworkQuantity.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/charts2/charts/npm/NpmNetworkQuantity.vue b/src/views/charts2/charts/npm/NpmNetworkQuantity.vue index d246fc12..644e819b 100644 --- a/src/views/charts2/charts/npm/NpmNetworkQuantity.vue +++ b/src/views/charts2/charts/npm/NpmNetworkQuantity.vue @@ -79,9 +79,9 @@ export default { endTime: getSecond(this.timeFilter.endTime), cycle: 0 } - if (this.tabIndex === 0) { + if (parseFloat(this.tabIndex) === 0) { this.side = 'client' - } else if (this.tabIndex === 1) { + } else if (parseFloat(this.tabIndex) === 1) { this.side = 'server' } if (condition && (typeof condition !== 'object') && type) {