From c172fa0ae05edf52dd80473650e132b468bb5fc5 Mon Sep 17 00:00:00 2001 From: jianneng-fit2cloud Date: Wed, 4 Dec 2024 13:24:40 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=9B=BE=E8=A1=A8=E5=BF=85=E8=A6=81=E5=AD=97=E6=AE=B5=E6=A3=80?= =?UTF-8?q?=E9=AA=8C=E5=A4=B1=E8=B4=A5=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/chart/components/views/index.vue | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/core/core-frontend/src/views/chart/components/views/index.vue b/core/core-frontend/src/views/chart/components/views/index.vue index 3741ac053f..41156d62bd 100644 --- a/core/core-frontend/src/views/chart/components/views/index.vue +++ b/core/core-frontend/src/views/chart/components/views/index.vue @@ -660,12 +660,13 @@ const checkFieldIsAllowEmpty = (allField?) => { // 如果有数据集字段并且字段值存在且不为空 if (viewAllDatasetFields.get(view.value?.id)) { - if (!view.value?.[key]?.length) continue - // 检查图表字段是否有不在数据集中 - for (const item of view.value[key]) { - if (!viewAllDatasetFields.get(view.value?.id).find(field => field.id === item.id)) { - includeDatasetField = true - break + if (view.value?.[key]?.length) { + // 检查图表字段是否有不在数据集中 + for (const item of view.value[key]) { + if (!viewAllDatasetFields.get(view.value?.id).find(field => field.id === item.id)) { + includeDatasetField = true + break + } } } // 如果有不在数据集中