From a5f883cf326de082c2d3f1f9a84d7b6067ee45e7 Mon Sep 17 00:00:00 2001 From: ade <2329571595@qq.com> Date: Sat, 21 Sep 2024 13:10:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E6=B5=81=E9=9A=90=E8=97=8F?= =?UTF-8?q?=E5=8F=91=E5=B8=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/app/app-publisher/index.tsx | 120 ++++++++++-------- 1 file changed, 64 insertions(+), 56 deletions(-) diff --git a/web/app/components/app/app-publisher/index.tsx b/web/app/components/app/app-publisher/index.tsx index 95cab5409..085d85c98 100644 --- a/web/app/components/app/app-publisher/index.tsx +++ b/web/app/components/app/app-publisher/index.tsx @@ -193,65 +193,72 @@ const AppPublisher = ({ ) } + { + !(detail?.mode === 'workflow' || detail?.mode === null) && ( +
+
+
+ 智能体中心 +
+
+ { + onSelect(item.value) + } + } + items={selects && selects.map((item) => { + return { + value: item.id, + name: item.name, + } + })} + /> +
+
+ + +
+
+
+ ) + }
-
- 智能体中心 -
-
- { - onSelect(item.value) - } - } - items={selects && selects.map((item) => { - return { - value: item.id, - name: item.name, - } - })} - /> -
-
- - -
-
-
- }>{t('workflow.common.runApp')} + }>{t('workflow.common.runApp')} {appDetail?.mode === 'workflow' ? ( } + icon={} > {t('workflow.common.batchRunApp')} @@ -263,12 +270,13 @@ const AppPublisher = ({ handleTrigger() }} disabled={!publishedTime} - icon={} + icon={} > {t('workflow.common.embedIntoSite')} )} - }>{t('workflow.common.accessAPIReference')} + }>{t('workflow.common.accessAPIReference')} {appDetail?.mode === 'workflow' && ( - + ) }