|
|
|
|
@ -631,11 +631,13 @@ export const useFlowCallbacks = (
|
|
|
|
|
data: {
|
|
|
|
|
...nodeDefinition.data,
|
|
|
|
|
title: nodeDefinition.nodeName,
|
|
|
|
|
type: nodeType,
|
|
|
|
|
compId: nodeDefinition.id || nodeDefinition.flowHousVO.id
|
|
|
|
|
type: nodeType
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 有组件ID的节点就追加组件id数据
|
|
|
|
|
if (nodeDefinition.id || nodeDefinition?.flowHousVO?.id) newNode.data.compId = nodeDefinition.id || nodeDefinition?.flowHousVO?.id;
|
|
|
|
|
|
|
|
|
|
if (nodeType === 'SWITCH') {
|
|
|
|
|
newNode.data.component = {
|
|
|
|
|
customDef: JSON.stringify({
|
|
|
|
|
|