fix: 处理旧数据基础事件报错的问题

This commit is contained in:
奔跑的面条
2022-11-22 12:42:23 +08:00
parent be014225c1
commit 5ea963fb93
4 changed files with 20 additions and 5 deletions
+2
View File
@@ -9,6 +9,8 @@ export const npmPkgs = { echarts }
// 组件事件处理 hook
export const useLifeHandler = (chartConfig: CreateComponentType | CreateComponentGroupType) => {
if (!chartConfig.events) return {}
// 处理基础事件
const baseEvent: { [key: string]: any } = {}
for (const key in chartConfig.events.baseEvent) {