From b1796482ac8fe9adc6f86b016c29732db29e067c Mon Sep 17 00:00:00 2001 From: Azir <2075125282@qq.com> Date: Mon, 21 Apr 2025 15:01:56 +0800 Subject: [PATCH] fix(hooks): fixed the issue where loading was not properly closed in some cases. --- src/hooks/common/echarts.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/hooks/common/echarts.ts b/src/hooks/common/echarts.ts index 45c33e12..73306834 100644 --- a/src/hooks/common/echarts.ts +++ b/src/hooks/common/echarts.ts @@ -210,6 +210,10 @@ export function useEcharts(optionsFactory: () => T, hooks: C // render chart await render(); + + if (chart) { + await onUpdated?.(chart); + } } scope.run(() => {