fix:修复删除节点对应连线没有删除的bug,以及移动后切换project 没有回到中心点的问题

This commit is contained in:
zhangyu
2020-09-01 09:56:13 +08:00
parent 2469e93b61
commit 00ba7fb1cf
3 changed files with 27 additions and 3 deletions

View File

@@ -210,7 +210,9 @@
this.$refs['topology'].setData();
},500)
}
// res.data.topo.viewsCenter?res.data.topo.viewsCenter:
this.$refs['topology'].viewsCenter={x:0,y:0};
// res.data.topo.zoom?res.data.topo.zoom:
this.$refs['topology'].zoom=1;
})
},
@@ -246,6 +248,7 @@
item.dashes=[15,15];
item.from=item.source;
item.to=item.target;
item.label=item.name;
});
return arr
},