From ab5901cd46d085ffcf4f0edd1fbd8be8314dd973 Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Wed, 2 Aug 2023 18:04:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dnpm=20location?= =?UTF-8?q?=E7=9A=84=E7=AC=AC=E4=B8=80=E4=B8=AA=E6=8A=98=E7=BA=BF=E5=9B=BE?= =?UTF-8?q?stack=E4=B8=8D=E5=AF=B9=E7=9A=84=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/NpmLine.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/charts2/charts/npm/NpmLine.vue b/src/views/charts2/charts/npm/NpmLine.vue index 112e7593..de70b3e8 100644 --- a/src/views/charts2/charts/npm/NpmLine.vue +++ b/src/views/charts2/charts/npm/NpmLine.vue @@ -182,6 +182,7 @@ export default { data = data.reverse() this.chartOption.series = data.map((t, i) => { + console.info(t) return { type: 'line', symbol: 'circle', @@ -196,7 +197,7 @@ export default { } }, name: t.legend ? t.legend : this.$t(chartData.i18n) || chartData.name, - stack: this.chartData.params.isStack ? 'network.total' : '', + stack: this.chartData.params.isStack ? (t.legend === this.$t('network.total') ? '' : 'network.total') : '', lineStyle: { width: 1 },