From 2a56663bd83b113ae2ba08a908917cd1eeaf6105 Mon Sep 17 00:00:00 2001 From: wisonic Date: Wed, 11 Sep 2024 19:11:32 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E5=9B=BE=E4=BE=8B=E9=A2=9C=E8=89=B2?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E4=BF=9D=E5=AD=98=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=20#11820?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../editor/editor-style/components/CustomColorStyleSelect.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/components/CustomColorStyleSelect.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/components/CustomColorStyleSelect.vue index 79e070c770..d805abca99 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/components/CustomColorStyleSelect.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-style/components/CustomColorStyleSelect.vue @@ -142,6 +142,8 @@ const setupSeriesColor = () => { const target = document.getElementById(targetId) if (target) { seriesColorState.seriesColorPickerId = `#${targetId}` + } else { + seriesColorPickerRef.value?.hide() } }) } @@ -175,7 +177,7 @@ const changeSeriesColor = () => { } }) if (changed) { - state.value.basicStyleForm[seriesColorName.value] = seriesColorState.seriesColor + state.value.basicStyleForm[seriesColorName.value] = cloneDeep(seriesColorState.seriesColor) changeBasicStyle('seriesColor') } }