From 23eba11c8f15e3ccee22734371fb6f4ff4458ce5 Mon Sep 17 00:00:00 2001 From: Justineo Date: Mon, 29 Mar 2021 19:51:21 +0800 Subject: [PATCH] fix: fix updateOptions --- src/ECharts.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/ECharts.ts b/src/ECharts.ts index ab25c76..ef237c7 100644 --- a/src/ECharts.ts +++ b/src/ECharts.ts @@ -160,10 +160,7 @@ export default defineComponent({ if (!chart.value) { init(option); } else { - chart.value.setOption(option, { - ...realUpdateOptions.value, - ...updateOptions - }); + chart.value.setOption(option, updateOptions || {}); } } @@ -193,7 +190,7 @@ export default defineComponent({ if (!chart.value) { init(); } else { - chart.value.setOption(option, props.updateOptions); + chart.value.setOption(option, realUpdateOptions.value); } }, { deep: true }