mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-03-25 22:34:32 +08:00
Merge branch 'fork/Child-qjj/patch-1'
This commit is contained in:
@@ -92,7 +92,8 @@ function useEcharts(chartRef: Ref<EchartsUIType>) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
useTimeoutFn(() => {
|
useTimeoutFn(() => {
|
||||||
if (!chartInstance) {
|
if (!chartInstance || chartInstance?.getDom() !== el) {
|
||||||
|
chartInstance?.dispose();
|
||||||
const instance = initCharts();
|
const instance = initCharts();
|
||||||
if (!instance) return;
|
if (!instance) return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user