From 8c36f95385c333e07a118e02de28b8f5aab93388 Mon Sep 17 00:00:00 2001 From: wisonic-s Date: Mon, 22 Apr 2024 23:16:34 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E5=A4=9A=E5=BA=8F?= =?UTF-8?q?=E5=88=97=E6=8F=90=E7=A4=BA=E5=88=A0=E9=99=A4=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../editor/editor-style/components/TooltipSelector.vue | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/components/TooltipSelector.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/components/TooltipSelector.vue index 9d3fde8078..eed42e7a71 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/components/TooltipSelector.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-style/components/TooltipSelector.vue @@ -287,10 +287,8 @@ const addAxis = (form: AxisEditForm) => { } } }) - state.tooltipForm.seriesTooltipFormatter = - state.tooltipForm.seriesTooltipFormatter.concat(dupAxis) state.tooltipForm.seriesTooltipFormatter = partition( - state.tooltipForm.seriesTooltipFormatter, + state.tooltipForm.seriesTooltipFormatter.concat(dupAxis), ele => quotaAxis.value.findIndex(item => item.id === ele.id) !== -1 ).flat() } @@ -321,8 +319,8 @@ const removeAxis = (form: AxisEditForm) => { if (axisMap[ele.seriesId]) { // 数据集中的字段 ele.show = false - ele.seriesId = ele.id ele.summary = axisMap[ele.seriesId].summary + ele.seriesId = ele.id } }) state.tooltipForm.seriesTooltipFormatter = partition(