|
|
|
|
@ -257,6 +257,9 @@ export const useFlowCallbacks = (
|
|
|
|
|
const sourceHandleType = getHandleType(newConnection.sourceHandle, sourceParams);
|
|
|
|
|
const targetHandleType = getHandleType(newConnection.targetHandle, targetParams);
|
|
|
|
|
|
|
|
|
|
console.log("sourceHandleType:",sourceHandleType);
|
|
|
|
|
console.log("targetHandleType:",targetHandleType);
|
|
|
|
|
|
|
|
|
|
// 验证连接类型是否匹配 (api只能连api, data只能连data)
|
|
|
|
|
if (sourceHandleType !== targetHandleType) {
|
|
|
|
|
console.warn('连接类型不匹配: ', sourceHandleType, targetHandleType);
|
|
|
|
|
@ -1291,7 +1294,7 @@ export const useFlowCallbacks = (
|
|
|
|
|
eventId: Array.from(new Set(item.eventId))
|
|
|
|
|
}));
|
|
|
|
|
try {
|
|
|
|
|
updateAppFlowData(appEventParams);
|
|
|
|
|
updateAppFlowData(appFlowParams);
|
|
|
|
|
if (appEventParams.length > 0) {
|
|
|
|
|
for (const item of appEventParams) {
|
|
|
|
|
await sleep(500);
|
|
|
|
|
|