feat(flow): 添加边线类型和数据属性

-为 API 类型边线添加 lineType 和 data 属性- 为数据类型边线添加 lineType 和 data 属性
master
钟良源 3 months ago
parent c1c0fa3aef
commit 85d4c58178

@ -304,7 +304,11 @@ export const convertFlowData = (flowData: any, useDefault = true) => {
target: target, target: target,
sourceHandle: finalSourceHandle, sourceHandle: finalSourceHandle,
targetHandle: finalTargetHandle, targetHandle: finalTargetHandle,
type: 'custom' type: 'custom',
lineType: 'api',
data: {
lineType: 'api'
}
}); });
} }
} }
@ -340,7 +344,11 @@ export const convertFlowData = (flowData: any, useDefault = true) => {
target: targetNodeId, target: targetNodeId,
sourceHandle: sourceHandle, sourceHandle: sourceHandle,
targetHandle: targetHandle, targetHandle: targetHandle,
type: 'custom' type: 'custom',
lineType: 'data',
data: {
lineType: 'data'
}
}); });
} }
} }

Loading…
Cancel
Save