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

Loading…
Cancel
Save