@ -187,6 +187,12 @@ export const useFlowCallbacks = (
if (!sourceNode || !targetNode) {
return;
}
// 不允许链接到自己的节点上
if (sourceNode.id === targetNode.id) {
console.warn("不允许自旋链接");
// 获取源节点和目标节点的参数信息
const sourceParams: any = sourceNode.data?.parameters || {};
const targetParams: any = targetNode.data?.parameters || {};