|
@@ -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);
|