diff --git a/frontend/src/components/canvas/utils/style.js b/frontend/src/components/canvas/utils/style.js index 448ac7e418..b7cc3dd182 100644 --- a/frontend/src/components/canvas/utils/style.js +++ b/frontend/src/components/canvas/utils/style.js @@ -346,14 +346,14 @@ export function adaptCurTheme(customStyle, customAttr, chartType) { recursionThemTransObj(THEME_ATTR_TRANS_SLAVE1_BACKGROUND, customAttr, LIGHT_THEME_COMPONENT_BACKGROUND) if (chartType === 'symbol-map') { // 符号地图特殊处理 - Vue.set(customStyle['baseMapStyle'], 'baseMapTheme', 'light') + Vue.set(customStyle, 'baseMapStyle', { baseMapTheme: 'light' }) } } else { recursionThemTransObj(THEME_STYLE_TRANS_MAIN, customStyle, DARK_THEME_COLOR_MAIN) recursionThemTransObj(THEME_STYLE_TRANS_SLAVE1, customStyle, DARK_THEME_COLOR_SLAVE1) if (chartType === 'symbol-map') { // 符号地图特殊处理 - Vue.set(customStyle['baseMapStyle'], 'baseMapTheme', 'dark') + Vue.set(customStyle, 'baseMapStyle', { baseMapTheme: 'dark' }) recursionThemTransObj(THEME_ATTR_TRANS_MAIN_SYMBOL, customAttr, '#000000') } else { recursionThemTransObj(THEME_ATTR_TRANS_MAIN, customAttr, DARK_THEME_COLOR_MAIN)