feat(flow): 应用编排添加保存成功和失败的提示信息

master
钟良源 3 months ago
parent f67ed129c0
commit 3232a2e08f

@ -1243,13 +1243,19 @@ export const useFlowCallbacks = (
...item,
eventId: Array.from(new Set(item.eventId))
}));
updateAppFlowData(appFlowParams);
if (appEventParams.length > 0) {
for (const item of appEventParams) {
await sleep(500);
updateAppEventChannel(item);
try {
updateAppFlowData(appFlowParams);
if (appEventParams.length > 0) {
for (const item of appEventParams) {
await sleep(500);
await updateAppEventChannel(item);
}
}
Message.success('保存成功');
} catch (error) {
console.error('保存失败:', error);
Message.error('保存失败: ' + (error.message));
}
}
}, [nodes, edges, initialData?.appId]);

Loading…
Cancel
Save