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) })