From 2d6787a6217482f960ff4fa33bf04d18c3c17e2e Mon Sep 17 00:00:00 2001 From: changcode Date: Fri, 30 Sep 2022 16:31:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20npm=20=E4=B8=8B?= =?UTF-8?q?=E9=92=BB=E6=80=BB=E6=B5=81=E9=87=8F=E6=8A=98=E7=BA=BF=E5=9B=BE?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E5=A4=84=E7=90=86=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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/charts2/charts/npm/NpmTrafficLine.vue b/src/views/charts2/charts/npm/NpmTrafficLine.vue index 020bd2ad..25ee6c63 100644 --- a/src/views/charts2/charts/npm/NpmTrafficLine.vue +++ b/src/views/charts2/charts/npm/NpmTrafficLine.vue @@ -135,15 +135,16 @@ export default { if (!val) { val = this.metricFilter } + debugger // const conditionStr = this.$route.query.queryCondition ? this.$route.query.queryCondition : '' let condition = '' - if (this.queryCondition.indexOf('OR') > -1) { + const type = this.dimensionType + if (this.queryCondition.indexOf('OR') > -1 && type !== 'protocolPort') { condition = this.queryCondition.split(/["|'](.*?)["|']/) } else { condition = this.queryCondition } // const type = this.$store.getters.getDimensionType - const type = this.dimensionType if (this.chartData.id === 24) { this.side = 'client' } else if (this.chartData.id === 29) {