fix: fix useEcharts

vite8^2
cdc 2026-03-10 21:48:33 +08:00
parent a1bb132233
commit 107750971b
1 changed files with 1 additions and 0 deletions

View File

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