fix(projects): 🐛 fix the error produced when calling the updateSpec method in vchart. fixed [#105]

This commit is contained in:
一寸灰
2025-06-08 17:56:18 +08:00
committed by GitHub
parent 87a113c5e6
commit f52b009a06

View File

@@ -58,9 +58,9 @@ export function useVChart<T extends ISpec>(specFactory: () => T, hooks: ChartHoo
Object.assign(spec, updatedOpts);
if (isRendered()) {
chart?.release();
}
// if (isRendered()) {
// chart?.release();
// }
chart?.updateSpec({ ...updatedOpts }, true);