refactor(图表): 图表插件渲染逻辑优化

This commit is contained in:
wisonic
2024-12-27 18:46:38 +08:00
committed by wisonic-s
parent d471c5556c
commit c0f483704f

View File

@@ -801,6 +801,13 @@ onMounted(() => {
initTitle()
const viewInfo = val ? val : view.value
nextTick(() => {
if (view.value?.plugin?.isPlugin) {
chartComponent?.value?.invokeMethod({
methodName: 'renderChart',
args: [viewInfo]
})
return
}
chartComponent?.value?.renderChart?.(viewInfo)
})
}