diff --git a/src/views/emis/emisTransPlanRuleTopoGraph/index.vue b/src/views/emis/emisTransPlanRuleTopoGraph/index.vue index 4329d456..6581ec1c 100644 --- a/src/views/emis/emisTransPlanRuleTopoGraph/index.vue +++ b/src/views/emis/emisTransPlanRuleTopoGraph/index.vue @@ -158,7 +158,7 @@ export default { container, width: document.getElementById('container').clientWidth + 10, //画布宽度等于浏览器宽度 height: document.getElementById('container').clientHeight + 10, //画布高度等于浏览器高度 - fitView: true, + fitView: false, // fitViewPadding: [10, 50, 10, 50], animate: true, // plugins: [this.treeTooltip(), this.contextMenu], @@ -332,6 +332,7 @@ export default { const animateCfg = { duration: 200, easing: "easeCubic" }; this.graph.on("node:click", (evt) => { + // this.graph.fitView(); const { item } = evt; const node = item?.get("model"); //点击更多 显示锁起来的下一层节点