fix: 地图高级配置最后一页显示undefined

This commit is contained in:
fit2cloud-chenyw 2023-11-08 15:38:11 +08:00
parent fcc2646b3c
commit c43486bc73

View File

@ -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