fix:修改搜素框的相关bug

This commit is contained in:
zhangyu
2020-10-21 13:38:18 +08:00
parent 4c5d9aa11c
commit 10164d5096
2 changed files with 16 additions and 11 deletions

View File

@@ -210,8 +210,10 @@
this.$refs['topology'].setData();
},100)
}
this.$refs['topology'].viewsCenter=res.data.topo.viewsCenter?res.data.topo.viewsCenter:{x:0,y:0};
this.$refs['topology'].zoom=res.data.topo.zoom?(res.data.topo.zoom*this.screenX/1920):1;
if(res.data.topo){
this.$refs['topology'].viewsCenter=res.data.topo.viewsCenter?res.data.topo.viewsCenter:{x:0,y:0};
this.$refs['topology'].zoom=res.data.topo.zoom?(res.data.topo.zoom*this.screenX/1920):1;
}
this.$refs['topology'].selNodeId='';
})
},