mirror of
https://github.com/dataease/dataease.git
synced 2026-05-15 05:22:13 +08:00
fix(图表): 修复地图图表的高级配置中,地名映射输入框为允许为空的问题
This commit is contained in:
committed by
jianneng-fit2cloud
parent
27221461c0
commit
27313883d4
@@ -107,7 +107,8 @@ const finishEdit = () => {
|
||||
}, {})
|
||||
}
|
||||
const oldMappedName = areaNameMap[curOriginName.value]
|
||||
if (oldMappedName === curMappedName.value) {
|
||||
if (!curMappedName.value || oldMappedName === curMappedName.value) {
|
||||
curMappedName.value = oldMappedName
|
||||
return
|
||||
}
|
||||
areaNameMap[curOriginName.value] = curMappedName.value
|
||||
|
||||
@@ -150,7 +150,7 @@ export class Map extends L7PlotChartView<ChoroplethOptions, Choropleth> {
|
||||
.map(key => f.properties[key])
|
||||
.filter(Boolean)
|
||||
.join('@')
|
||||
if (isEmpty(names)) {
|
||||
if (isEmpty(names) || !gadmName) {
|
||||
return true
|
||||
}
|
||||
return names.replace(/@[^@]*$/, '') === gadmName
|
||||
|
||||
Reference in New Issue
Block a user