diff --git a/nezha-fronted/src/components/common/project/meta2d/js/meta2dMainCalc.js b/nezha-fronted/src/components/common/project/meta2d/js/meta2dMainCalc.js index bad91d891..1b7a1825c 100644 --- a/nezha-fronted/src/components/common/project/meta2d/js/meta2dMainCalc.js +++ b/nezha-fronted/src/components/common/project/meta2d/js/meta2dMainCalc.js @@ -143,6 +143,9 @@ export default { } getTopology(this.meta2dId).lock(1) this.getNodesArr() + if (this.meta2dId === 'rightBoxChartEdit') { + this.$refs.header.editMeta2d() + } }) }) }, @@ -299,7 +302,7 @@ export default { this.selectPens = pens this.modulesDiff(pens[0]) this.$refs.meta2dProps && (this.$refs.meta2dProps.isUpdate = true) - }, 600) + }, 200) }, topoClick (params, e) { // 点击节点 if (!params.pen && this.$refs.meta2dProps) { diff --git a/nezha-fronted/src/components/common/rightBox/chart/otherChartConfig.vue b/nezha-fronted/src/components/common/rightBox/chart/otherChartConfig.vue index 7e18e993b..6d7557c38 100644 --- a/nezha-fronted/src/components/common/rightBox/chart/otherChartConfig.vue +++ b/nezha-fronted/src/components/common/rightBox/chart/otherChartConfig.vue @@ -502,11 +502,11 @@ export default { }, topologyDialogChange (flag, data) { this.topologyDialog = flag - if (flag) { - setTimeout(() => { - this.$refs.rightBoxChartEdit.$refs.header.editMeta2d() - }, 500) - } + // if (flag) { + // setTimeout(() => { + // this.$refs.rightBoxChartEdit.$refs.header.editMeta2d() + // }, 500) + // } if (data) { this.chartConfig.param.topo = data this.change()