fix(hooks): fixed the issue where loading was not properly closed in some cases.

This commit is contained in:
Azir 2025-04-21 15:01:56 +08:00
parent 05dc11e258
commit b1796482ac

View File

@ -210,6 +210,10 @@ export function useEcharts<T extends ECOption>(optionsFactory: () => T, hooks: C
// render chart // render chart
await render(); await render();
if (chart) {
await onUpdated?.(chart);
}
} }
scope.run(() => { scope.run(() => {