From c43486bc7331079df88a39a386f22d7b4d7b4c4c Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Wed, 8 Nov 2023 15:38:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=9C=B0=E5=9B=BE=E9=AB=98=E7=BA=A7?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=9C=80=E5=90=8E=E4=B8=80=E9=A1=B5=E6=98=BE?= =?UTF-8?q?=E7=A4=BAundefined?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../frontend/src/views/chart/components/senior/MapMapping.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/frontend/src/views/chart/components/senior/MapMapping.vue b/core/frontend/src/views/chart/components/senior/MapMapping.vue index 37eaeae6d9..3689ac8952 100644 --- a/core/frontend/src/views/chart/components/senior/MapMapping.vue +++ b/core/frontend/src/views/chart/components/senior/MapMapping.vue @@ -227,7 +227,9 @@ export default { } features.forEach(feature => { - this.mappingForm[cCode][feature.properties.name || feature.properties.NAME] = null + if (feature.properties.name || feature.properties.NAME) { + this.mappingForm[cCode][feature.properties.name || feature.properties.NAME] = null + } }) } const cCode = this.currentAreaCode