From 0f4e4c33a6e9a6b1556c162324d3b64bd4f9cdbe Mon Sep 17 00:00:00 2001 From: wisonic-s Date: Tue, 7 Nov 2023 14:06:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=AC=A6=E5=8F=B7?= =?UTF-8?q?=E5=9C=B0=E5=9B=BE=E4=B8=BB=E9=A2=98=E4=BF=AE=E6=94=B9=E6=97=A0?= =?UTF-8?q?=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/antv/symbolmap/index.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/extensions/dataease-extensions-view/view-symbolmap/view-symbolmap-frontend/src/views/antv/symbolmap/index.vue b/extensions/dataease-extensions-view/view-symbolmap/view-symbolmap-frontend/src/views/antv/symbolmap/index.vue index fe559a4b26..ae24cd1645 100644 --- a/extensions/dataease-extensions-view/view-symbolmap/view-symbolmap-frontend/src/views/antv/symbolmap/index.vue +++ b/extensions/dataease-extensions-view/view-symbolmap/view-symbolmap-frontend/src/views/antv/symbolmap/index.vue @@ -550,14 +550,17 @@ export default { }, getMapTheme(chart) { - let theme = 'light' + let theme = 'normal' if (chart.customStyle) { const customStyle = JSON.parse(chart.customStyle) if (customStyle.baseMapStyle && customStyle.baseMapStyle.baseMapTheme) { theme = customStyle.baseMapStyle.baseMapTheme } } - return theme + if (theme === 'light') { + theme = 'normal' + } + return `amap://styles/${theme}` },