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

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

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

Loading…
Cancel
Save