From 85e40b19431c403ea3ce7cfcc120e01ac49fe6c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9D=92=E8=8F=9C=E7=99=BD=E7=8E=89=E6=B1=A4?= <79054161+Azir-11@users.noreply.github.com> Date: Wed, 23 Apr 2025 21:34:18 +0800 Subject: [PATCH] fix(hooks): fixed the issue where loading was not properly closed in some cases. (#737) --- 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(() => {