diff --git a/src/pages/orchestration/appCompComponent/compInfo.tsx b/src/pages/orchestration/appCompComponent/compInfo.tsx index 092a1d1..2bb7831 100644 --- a/src/pages/orchestration/appCompComponent/compInfo.tsx +++ b/src/pages/orchestration/appCompComponent/compInfo.tsx @@ -26,7 +26,7 @@ const CompInfo = ({ currentCompInfo }) => {

输入参数

{

输出参数

{ return (
-
{currentCompInfo.name}
+
{currentCompInfo.name || currentCompInfo?.main?.name}
-
-
- {currentCompInfo.def?.apis.map((item: any, index) =>
{item.id}
)} -
-
-
{currentCompInfo.def?.apiOut.id}
-
-
- -
-
- {currentCompInfo.def?.dataIns.map((item: any, index) =>
{item.id}
)} -
-
- {currentCompInfo.def?.dataOuts.map((item: any, index) =>
{item.id}
)} -
-
+ {currentCompInfo.def ? ( + <> +
+
+ {currentCompInfo.def?.apis?.map((item: any, index) =>
{item.id}
)} +
+
+
{currentCompInfo.def?.apiOut?.id}
+
+
+ +
+
+ {currentCompInfo.def?.dataIns?.map((item: any, index) =>
{item.id}
)} +
+
+ {currentCompInfo.def?.dataOuts?.map((item: any, index) =>
{item.id}
)} +
+
+ + ) : ( + <> +
+
+
contour
+
+
+
done
+
+
+ +
+
+ {currentCompInfo.flowHousVO?.dataIns?.map((item: any, index) =>
{item.id}
)} +
+
+ {currentCompInfo.flowHousVO?.dataOuts?.map((item: any, index) =>
{item.id}
)} +
+
+ + )}
); @@ -82,7 +106,7 @@ const CompInfo = ({ currentCompInfo }) => {
-
{currentCompInfo.name}
+
{currentCompInfo.name || currentCompInfo?.main?.name}
diff --git a/src/pages/orchestration/appCompComponent/sideBar.tsx b/src/pages/orchestration/appCompComponent/sideBar.tsx index 2e96bba..fba7e4a 100644 --- a/src/pages/orchestration/appCompComponent/sideBar.tsx +++ b/src/pages/orchestration/appCompComponent/sideBar.tsx @@ -51,7 +51,7 @@ const SideBar = ({ compList, onSelect }) => { return (} />); });