Merge branch 'fork/Child-qjj/patch-1'

pull/324/head
Jin Mao 2026-01-23 13:21:49 +08:00
commit 9ee7a7d9ff
1 changed files with 2 additions and 1 deletions

View File

@ -92,7 +92,8 @@ function useEcharts(chartRef: Ref<EchartsUIType>) {
return;
}
useTimeoutFn(() => {
if (!chartInstance) {
if (!chartInstance || chartInstance?.getDom() !== el) {
chartInstance?.dispose();
const instance = initCharts();
if (!instance) return;
}