mirror of
https://gitee.com/honghuangdc/soybean-admin-element-plus.git
synced 2025-12-30 10:22:25 +00:00
fix(projects): 🐛 fix the error produced when calling the updateSpec method in vchart. fixed [#105]
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user