From 27313883d452fa967600f4fb2fb64e883424e8ba Mon Sep 17 00:00:00 2001 From: jianneng-fit2cloud Date: Tue, 3 Mar 2026 16:10:15 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=9C=B0=E5=9B=BE=E5=9B=BE=E8=A1=A8=E7=9A=84=E9=AB=98=E7=BA=A7?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E4=B8=AD=EF=BC=8C=E5=9C=B0=E5=90=8D=E6=98=A0?= =?UTF-8?q?=E5=B0=84=E8=BE=93=E5=85=A5=E6=A1=86=E4=B8=BA=E5=85=81=E8=AE=B8?= =?UTF-8?q?=E4=B8=BA=E7=A9=BA=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/editor/editor-senior/components/MapMapping.vue | 3 ++- .../src/views/chart/components/js/panel/charts/map/map.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/core/core-frontend/src/views/chart/components/editor/editor-senior/components/MapMapping.vue b/core/core-frontend/src/views/chart/components/editor/editor-senior/components/MapMapping.vue index a36002a3be..e0489007d0 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-senior/components/MapMapping.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-senior/components/MapMapping.vue @@ -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 diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/map/map.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/map/map.ts index b8c295f71e..012c581189 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/map/map.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/map/map.ts @@ -150,7 +150,7 @@ export class Map extends L7PlotChartView { .map(key => f.properties[key]) .filter(Boolean) .join('@') - if (isEmpty(names)) { + if (isEmpty(names) || !gadmName) { return true } return names.replace(/@[^@]*$/, '') === gadmName