diff --git a/nezha-fronted/src/components/common/project/meta2d/js/topoUtil.js b/nezha-fronted/src/components/common/project/meta2d/js/topoUtil.js index 1a2a87cd1..2af9f3372 100644 --- a/nezha-fronted/src/components/common/project/meta2d/js/topoUtil.js +++ b/nezha-fronted/src/components/common/project/meta2d/js/topoUtil.js @@ -140,6 +140,9 @@ export default { }, clacTopoData (data, queryValues) { // 主要处理 属性为原始属性 处理动画属性对原始属性的影响 return new Promise(resolve => { // 处理加载数据 + if (!data) { + data = {} + } if (!data.pens) { data.pens = [] } diff --git a/nezha-fronted/src/components/common/rightBox/chart/otherChartConfig.vue b/nezha-fronted/src/components/common/rightBox/chart/otherChartConfig.vue index 9d8e729d0..6d7557c38 100644 --- a/nezha-fronted/src/components/common/rightBox/chart/otherChartConfig.vue +++ b/nezha-fronted/src/components/common/rightBox/chart/otherChartConfig.vue @@ -505,7 +505,7 @@ export default { // if (flag) { // setTimeout(() => { // this.$refs.rightBoxChartEdit.$refs.header.editMeta2d() - // }, 1000) + // }, 500) // } if (data) { this.chartConfig.param.topo = data