diff --git a/nezha-fronted/src/components/common/project/topology.vue b/nezha-fronted/src/components/common/project/topology.vue index e988e9153..6dc7610b7 100644 --- a/nezha-fronted/src/components/common/project/topology.vue +++ b/nezha-fronted/src/components/common/project/topology.vue @@ -231,6 +231,7 @@ let nodes=[...this.nodesArray]; let edges=[...this.edgesArray]; console.log(nodes,edges); + this.editVisNetwork=false; }, //拓扑图方法 init(type){ diff --git a/nezha-fronted/src/components/common/project/visNetwork.vue b/nezha-fronted/src/components/common/project/visNetwork.vue index ad3dc2072..15ba1c932 100644 --- a/nezha-fronted/src/components/common/project/visNetwork.vue +++ b/nezha-fronted/src/components/common/project/visNetwork.vue @@ -183,14 +183,13 @@ }, getNetworkData(n){ this.topologyLoading=true; - setTimeout(()=>{ - this.edgesArray=[]; - this.nodesArray=[]; - setTimeout(()=>{ - this.topologyLoading=false; - this.$refs['topology'].setNetworkData( this.edgesArray,this.nodesArray); - },1000) - },500) + // this.$get('/project/topo',{projectId:n.id}).then(res=>{ + // console.log(res); + // setTimeout(()=>{ + // this.topologyLoading=false; + // this.$refs['topology'].setNetworkData( this.edgesArray,this.nodesArray); + // }) + // }) }, editVisNetworkChange(flag){ this.editVisNetwork=flag;