From 63fadf95a3749b45c9fe408fe6c5b0a22513f430 Mon Sep 17 00:00:00 2001 From: "@changcode" Date: Wed, 24 Aug 2022 14:33:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20Dahsboard=20-=20npm=20-=20=E7=BD=91?= =?UTF-8?q?=E7=BB=9C=E8=B4=A8=E9=87=8F=E6=A6=82=E8=A7=88=E5=9B=BE=E8=A1=A8?= =?UTF-8?q?=20=E4=B8=8B=E9=92=BB3=E7=BA=A7=E8=8F=9C=E5=8D=95=EF=BC=8C?= =?UTF-8?q?=E5=88=86=E6=95=B0=E7=BB=9F=E8=AE=A1=E4=BC=A0=E5=8F=82=E5=88=A4?= =?UTF-8?q?=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/charts2/charts/npm/NpmNetworkQuantity.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/views/charts2/charts/npm/NpmNetworkQuantity.vue b/src/views/charts2/charts/npm/NpmNetworkQuantity.vue index 430f075d..e45150ba 100644 --- a/src/views/charts2/charts/npm/NpmNetworkQuantity.vue +++ b/src/views/charts2/charts/npm/NpmNetworkQuantity.vue @@ -49,7 +49,7 @@ export default { } else { this.side = 'server' } - if (condition && type) { + if (condition.length > 1 && type) { params.q = `${type}='${condition[1]}' and side='${this.side}'` params.type = type } @@ -82,7 +82,7 @@ export default { } else { this.side = 'server' } - if (condition && type) { + if (condition.length > 1 && type) { params.q = `${type}='${condition[1]}' and side='${this.side}'` params.type = type } @@ -123,7 +123,9 @@ export default { if (scoreInfo.score > 6) { scoreInfo.score = 6 } - this.$store.commit('setNpmThirdLevelMenuScore', scoreInfo.score) + if (!params.q && this.chart.id === 44) { + this.$store.commit('setNpmThirdLevelMenuScore', scoreInfo.score) + } }).finally(() => { this.toggleLoading(false) })