|
|
|
@ -940,7 +940,7 @@ export const useFlowCallbacks = (
|
|
|
|
customDef: { eventId: emptyEvent.id, name: emptyEvent.name, topic: emptyEvent.topic }
|
|
|
|
customDef: { eventId: emptyEvent.id, name: emptyEvent.name, topic: emptyEvent.topic }
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (nodeType === 'BASIC') {
|
|
|
|
else {
|
|
|
|
newNode.data.component = {
|
|
|
|
newNode.data.component = {
|
|
|
|
type: nodeType,
|
|
|
|
type: nodeType,
|
|
|
|
compId: nodeDefinition.id
|
|
|
|
compId: nodeDefinition.id
|
|
|
|
@ -1079,7 +1079,7 @@ export const useFlowCallbacks = (
|
|
|
|
customDef: { eventId: emptyEvent?.eventId ?? null, name: emptyEvent.name, topic: emptyEvent.topic }
|
|
|
|
customDef: { eventId: emptyEvent?.eventId ?? null, name: emptyEvent.name, topic: emptyEvent.topic }
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (nodeType === 'BASIC') {
|
|
|
|
else {
|
|
|
|
newNode.data.component = {
|
|
|
|
newNode.data.component = {
|
|
|
|
type: nodeType,
|
|
|
|
type: nodeType,
|
|
|
|
compId: nodeDefinition.id
|
|
|
|
compId: nodeDefinition.id
|
|
|
|
@ -1194,7 +1194,7 @@ export const useFlowCallbacks = (
|
|
|
|
appEventDefinition,
|
|
|
|
appEventDefinition,
|
|
|
|
sceneId: info.id
|
|
|
|
sceneId: info.id
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
const res: any = await setMainFlowNew(params, initialData.appId);
|
|
|
|
const res: any = await setMainFlowNew(params, initialData.appId);
|
|
|
|
if (res.code === 200) {
|
|
|
|
if (res.code === 200) {
|
|
|
|
Message.success('保存成功');
|
|
|
|
Message.success('保存成功');
|
|
|
|
|