Compare commits

..

No commits in common. '8fcf17568b11695b529636df381003f808ed8e33' and '9f974861e5ee6d910ff1c282adc22dc13bd4bc53' have entirely different histories.

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

@ -309,6 +309,8 @@ const Market: React.FC<MarketProps> = ({ updateProjectComp }) => {
// 转换为数组格式 // 转换为数组格式
const resultComponents = Object.values(mergedComponents); const resultComponents = Object.values(mergedComponents);
console.log('resultComponents', resultComponents);
// 如果没有组件,显示提示信息 // 如果没有组件,显示提示信息
if (resultComponents.length === 0) { if (resultComponents.length === 0) {
return ( return (

Loading…
Cancel
Save