diff --git a/src/pages/flowEditor/components/nodeContentApp.tsx b/src/pages/flowEditor/components/nodeContentApp.tsx index 635b82c..d43d04b 100644 --- a/src/pages/flowEditor/components/nodeContentApp.tsx +++ b/src/pages/flowEditor/components/nodeContentApp.tsx @@ -286,7 +286,7 @@ const NodeContent = ({ data }: { data: NodeContentData }) => { color: group ? group.color : '#000' }} > - {isValidData(input) ? (input.name || input.id || `输入${index + 1}`) : ''} + {isValidData(input) ? `${input.name || input.id} ${input?.dataType}` : ''} ); })} @@ -307,7 +307,7 @@ const NodeContent = ({ data }: { data: NodeContentData }) => { color: group ? group.color : '#000' }} > - {isValidData(output) ? (output.name || output.id || `输出${index + 1}`) : ''} + {isValidData(output) ? `${output.dataType} ${output.name || output.id}` : ''} ); })}