Commit 4b030056b05ddba08f5e0fa763230b8c7816792f
1 parent
9478781f
perf: data component update chart , chart not immediate update
Showing
1 changed file
with
1 additions
and
1 deletions
... | ... | @@ -103,7 +103,7 @@ |
103 | 103 | unref(chartRef)?.setOption(props?.layout?.chartOption || {}); |
104 | 104 | }, 500); |
105 | 105 | |
106 | - watch(() => props.layout.componentType, updateChartType); | |
106 | + watch(() => props.layout.chartOption, updateChartType); | |
107 | 107 | |
108 | 108 | let timeout: Nullable<number> = null; |
109 | 109 | ... | ... |