tangjunhao 3 meses atrás
pai
commit
cf3c64580c
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      src/views/model/vueflow/index.vue

+ 2 - 2
src/views/model/vueflow/index.vue

@@ -217,8 +217,8 @@ onConnect(async (connection) => {
     linecount.value++;
     const newName = `Seg${linecount.value}`;
 
-    const pcId1 = sourceNode.data.comID === '3' ? targetNode.data.pcId : sourceNode.data.pcId;
-    const npcId = sourceNode.data.comID === '3' ? sourceNode.data.pcId : targetNode.data.pcId;
+    const pcId1 = sourceNode.data.comId === '3' ? targetNode.data.pcId : sourceNode.data.pcId;
+    const npcId = sourceNode.data.comId === '3' ? sourceNode.data.pcId : targetNode.data.pcId;
 
     try {
       const { pccId1 } = await createEdge(pid.value, 0, npcId, pcId1);