|
@@ -116,6 +116,7 @@ function useEcharts(chartRef: Ref<EchartsUIType>) {
|
|
|
chartInstance?.dispose();
|
|
chartInstance?.dispose();
|
|
|
const instance = initCharts();
|
|
const instance = initCharts();
|
|
|
if (!instance) return;
|
|
if (!instance) return;
|
|
|
|
|
+ chartInstance = instance;
|
|
|
}
|
|
}
|
|
|
clear && chartInstance?.clear();
|
|
clear && chartInstance?.clear();
|
|
|
chartInstance?.setOption(currentOptions);
|
|
chartInstance?.setOption(currentOptions);
|