@@ -369,13 +369,13 @@ export default {
369369 this . selfSetting ( huiChartOption )
370370 this . setAnimation ( huiChartOption )
371371 this . applyMarks ( this . integrateChart . eChartOption )
372- this . integrateChart . refresh ( huiChartOption )
372+ this . integrateChart . refresh ( cloneDeep ( huiChartOption ) )
373373 if ( this . colorMode !== 'default' ) {
374374 huiChartOption . color = this . computedChartColor ( )
375375 }
376376 if ( this . extend && Object . keys ( this . extend ) . length !== 0 ) {
377377 huiChartOption . extend = this . applyExtend ( this . integrateChart . eChartOption )
378- this . integrateChart . refresh ( huiChartOption )
378+ this . integrateChart . refresh ( cloneDeep ( huiChartOption ) )
379379 }
380380 this . $emit ( 'handle-color' , huiChartOption . color )
381381 if ( this . afterSetOption ) {
@@ -419,15 +419,15 @@ export default {
419419 if ( this . colorMode !== 'default' ) {
420420 huiChartOption . color = this . computedChartColor ( )
421421 }
422- this . integrateChart . setSimpleOption ( this . iChartName , huiChartOption , plugins )
422+ this . integrateChart . setSimpleOption ( this . iChartName , cloneDeep ( huiChartOption ) , plugins )
423423 this . $emit ( 'handle-color' , huiChartOption . color )
424424 this . applyMarks ( this . integrateChart . eChartOption )
425425 }
426426
427427 // 判断extend,将extend放入配置项中
428428 if ( this . extend && Object . keys ( this . extend ) . length !== 0 ) {
429429 huiChartOption . extend = this . applyExtend ( this . integrateChart . eChartOption )
430- this . integrateChart . setSimpleOption ( this . iChartName , huiChartOption , plugins )
430+ this . integrateChart . setSimpleOption ( this . iChartName , cloneDeep ( huiChartOption ) , plugins )
431431 }
432432 this . integrateChart . render ( this . renderOption )
433433
0 commit comments