From 57e72c5aef6dad6ec9b04a8fd7600ddf3aba84e5 Mon Sep 17 00:00:00 2001 From: wisonic Date: Wed, 8 Jan 2025 19:18:44 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E5=9B=BE=E8=A1=A8?= =?UTF-8?q?=E9=A6=96=E6=AC=A1=E7=82=B9=E5=87=BB=E4=B8=8D=E9=87=8D=E6=96=B0?= =?UTF-8?q?=E5=8A=A0=E8=BD=BD=20#13722?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../editor/editor-style/components/LabelSelector.vue | 3 +++ .../editor/editor-style/components/TooltipSelector.vue | 3 +++ 2 files changed, 6 insertions(+) diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/components/LabelSelector.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/components/LabelSelector.vue index 6f84e137e4..0b8b21e6e4 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/components/LabelSelector.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-style/components/LabelSelector.vue @@ -443,6 +443,9 @@ const defaultPlaceholder = computed(() => { watch( () => allFields.value, () => { + if (!showProperty('showFields')) { + return + } let result = [] state.labelForm.showFields?.forEach(field => { if (allFields.value?.map(i => i.value).includes(field)) { 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 a422617311..59c75a106d 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 @@ -412,6 +412,9 @@ const defaultPlaceholder = computed(() => { watch( () => allFields.value, () => { + if (!showProperty('showFields')) { + return + } let result = [] state.tooltipForm.showFields?.forEach(field => { if (allFields.value?.map(i => i.value).includes(field)) {