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,7 +103,7 @@ | ||
103 | unref(chartRef)?.setOption(props?.layout?.chartOption || {}); | 103 | unref(chartRef)?.setOption(props?.layout?.chartOption || {}); |
104 | }, 500); | 104 | }, 500); |
105 | 105 | ||
106 | - watch(() => props.layout.componentType, updateChartType); | 106 | + watch(() => props.layout.chartOption, updateChartType); |
107 | 107 | ||
108 | let timeout: Nullable<number> = null; | 108 | let timeout: Nullable<number> = null; |
109 | 109 |