fix:处理默认为空的状态
This commit is contained in:
@@ -197,7 +197,7 @@
|
|||||||
this.topologyLoading=true;
|
this.topologyLoading=true;
|
||||||
this.editVisNetwork=false;
|
this.editVisNetwork=false;
|
||||||
this.$get('/project/topo',{projectId:n.id}).then(res=>{
|
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.nodesArray=[];
|
||||||
this.edgesArray=[];
|
this.edgesArray=[];
|
||||||
this.nodesArrayOther=this.formatNodesArr(res.data.topo.nodes);
|
this.nodesArrayOther=this.formatNodesArr(res.data.topo.nodes);
|
||||||
|
|||||||
Reference in New Issue
Block a user