fix:处理默认为空的状态

This commit is contained in:
zhangyu
2020-08-27 18:08:56 +08:00
parent 332dd3eb58
commit 01de6414e6

View File

@@ -197,7 +197,7 @@
this.topologyLoading=true;
this.editVisNetwork=false;
this.$get('/project/topo',{projectId:n.id}).then(res=>{
if(res.data.topo){
if(res.data.topo&&res.data.topo.nodes.length>0){
this.nodesArray=[];
this.edgesArray=[];
this.nodesArrayOther=this.formatNodesArr(res.data.topo.nodes);