diff --git a/src/pages/flowEditor/components/nodeContentCode.tsx b/src/pages/flowEditor/components/nodeContentCode.tsx
index b509400..2de608f 100644
--- a/src/pages/flowEditor/components/nodeContentCode.tsx
+++ b/src/pages/flowEditor/components/nodeContentCode.tsx
@@ -155,7 +155,7 @@ const NodeContent = ({ data }: { data: NodeContentData }) => {
{dataIns.map((input, index) => (
- {input.id || `输入${index + 1}`}
+ {input.id || `输入${index + 1}`} {input.dataType}
))}
@@ -165,7 +165,7 @@ const NodeContent = ({ data }: { data: NodeContentData }) => {
{dataOuts.map((output, index) => (
- {`${output.id} ${output.dataType}` || `输出${index + 1}`}
+ {output.dataType} {`${output.id}` || `输出${index + 1}`}
))}
diff --git a/src/pages/flowEditor/components/nodeContentImage.tsx b/src/pages/flowEditor/components/nodeContentImage.tsx
index d600ff8..93f3c03 100644
--- a/src/pages/flowEditor/components/nodeContentImage.tsx
+++ b/src/pages/flowEditor/components/nodeContentImage.tsx
@@ -161,7 +161,7 @@ const NodeContent = ({ data }: { data: NodeContentData }) => {
{dataOuts.map((output, index) => (
- {output.id || `输出${index + 1}`}
+ {output.dataType} {output.id || `输出${index + 1}`}
))}
diff --git a/src/pages/flowEditor/components/nodeContentLoop.tsx b/src/pages/flowEditor/components/nodeContentLoop.tsx
index 8bf4ded..5f33725 100644
--- a/src/pages/flowEditor/components/nodeContentLoop.tsx
+++ b/src/pages/flowEditor/components/nodeContentLoop.tsx
@@ -150,7 +150,7 @@ const NodeContent = ({ data }: { data: NodeContentData }) => {
{dataIns.map((input, index) => (
- {input.id || `输入${index + 1}`}
+ {input.id || `输入${index + 1}`} {input.dataType}
))}
@@ -160,7 +160,7 @@ const NodeContent = ({ data }: { data: NodeContentData }) => {
{dataOuts.map((output, index) => (
- {output.id || `输出${index + 1}`}
+ {output.dataType} {output.id || `输出${index + 1}`}
))}
diff --git a/src/pages/flowEditor/components/nodeContentOther.tsx b/src/pages/flowEditor/components/nodeContentOther.tsx
index 456c1ff..fbaed69 100644
--- a/src/pages/flowEditor/components/nodeContentOther.tsx
+++ b/src/pages/flowEditor/components/nodeContentOther.tsx
@@ -215,7 +215,6 @@ const NodeContent = ({ data }: { data: NodeContentData }) => {
const dataOuts = data.parameters?.dataOuts || [];
const showFooter = formatFooter(data.component) || false;
const footerData = (showFooter && data.component) || {};
- // console.log(apiIns, apiOuts, dataIns, dataOuts);
// 判断节点类型
const isStartNode = data.type === 'start';
@@ -241,7 +240,7 @@ const NodeContent = ({ data }: { data: NodeContentData }) => {
{apiOuts.map((output, index) => (
- {output.desc}
+ {output.dataType} {output.desc}
))}
@@ -264,7 +263,7 @@ const NodeContent = ({ data }: { data: NodeContentData }) => {
{dataIns.map((input, index) => (
- {input.id || `输入${index + 1}`}
+ {input.id || `输入${index + 1}`} {input.dataType}
))}
@@ -274,7 +273,7 @@ const NodeContent = ({ data }: { data: NodeContentData }) => {
{dataOuts.map((output, index) => (
- {output.id || `输出${index + 1}`}
+ {output.dataType} {output.id || `输出${index + 1}`}
))}
diff --git a/src/pages/flowEditor/components/nodeContentREST.tsx b/src/pages/flowEditor/components/nodeContentREST.tsx
index 22797ec..5fceddb 100644
--- a/src/pages/flowEditor/components/nodeContentREST.tsx
+++ b/src/pages/flowEditor/components/nodeContentREST.tsx
@@ -152,7 +152,7 @@ const NodeContent = ({ data }: { data: NodeContentData }) => {
{dataIns.map((input, index) => (
- {input.id || `输入${index + 1}`}
+ {input.id || `输入${index + 1}`} {input.dataType}
))}
@@ -162,7 +162,7 @@ const NodeContent = ({ data }: { data: NodeContentData }) => {
{dataOuts.map((output, index) => (
- {`${output.id} ${output.dataType}` || `输出${index + 1}`}
+ {output.dataType} {`${output.id}` || `输出${index + 1}`}
))}
diff --git a/src/pages/flowEditor/components/nodeContentSwitch.tsx b/src/pages/flowEditor/components/nodeContentSwitch.tsx
index 4120a2c..590b6aa 100644
--- a/src/pages/flowEditor/components/nodeContentSwitch.tsx
+++ b/src/pages/flowEditor/components/nodeContentSwitch.tsx
@@ -148,7 +148,7 @@ const NodeContent = ({ data }: { data: NodeContentData }) => {
{dataIns.map((input, index) => (
- {input.id || `输入${index + 1}`}
+ {input.id || `输入${index + 1}`} {input.dataType}
))}
@@ -158,7 +158,7 @@ const NodeContent = ({ data }: { data: NodeContentData }) => {
{dataOuts.map((output, index) => (
- {output.id || `输出${index + 1}`}
+ {output.dataType} {output.id || `输出${index + 1}`}
))}