Ver código fonte

fix:蛇形排序

lupeng 1 mês atrás
pai
commit
6a2148b2c1

+ 5 - 0
src/views/base/craftManagement/route/bindProcess.vue

@@ -734,6 +734,7 @@ async function layoutGraph(direction) {
 //     fitView();
 //   });
 // };
+const fit = ref({});
 const convertToSnakeLayout = async () => {
   const res = await toJavaSnake({
     id: route.fullPath.split("/")[4],
@@ -743,6 +744,10 @@ const convertToSnakeLayout = async () => {
   flowData.nodes = jsonData.nodes;
   flowData.edges = jsonData.edges;
 
+  nextTick(() => {
+    instance.fitView();
+  });
+
   // await loadProcessesFlow();
   // flowBoxScreen();
 };