From e038b6c4b793d06b3036153f22413d012ca08761 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=B4=AA=E6=B4=AA?= <2498601771@qq.com> Date: Wed, 2 Aug 2023 18:35:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dnpm=20location?= =?UTF-8?q?=E6=8A=98=E7=BA=BF=E5=9B=BEtooltip=E4=B8=8D=E5=AF=B9=E7=9A=84?= =?UTF-8?q?=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, 1 insertion(+), 2 deletions(-) diff --git a/src/views/charts2/charts/npm/NpmLine.vue b/src/views/charts2/charts/npm/NpmLine.vue index de70b3e8..c6e3d7d4 100644 --- a/src/views/charts2/charts/npm/NpmLine.vue +++ b/src/views/charts2/charts/npm/NpmLine.vue @@ -182,7 +182,6 @@ export default { data = data.reverse() this.chartOption.series = data.map((t, i) => { - console.info(t) return { type: 'line', symbol: 'circle', @@ -196,7 +195,7 @@ export default { shadowBlur: t.positioning ? this.sizes[t.positioning] + 2 : 0 } }, - name: t.legend ? t.legend : this.$t(chartData.i18n) || chartData.name, + name: t.invertTab ? t.legend : this.$t(chartData.i18n), stack: this.chartData.params.isStack ? (t.legend === this.$t('network.total') ? '' : 'network.total') : '', lineStyle: { width: 1