diff --git a/web/app/components/app/text-generate/item/index.tsx b/web/app/components/app/text-generate/item/index.tsx index c3086bc829..e8b98e554d 100644 --- a/web/app/components/app/text-generate/item/index.tsx +++ b/web/app/components/app/text-generate/item/index.tsx @@ -322,16 +322,16 @@ const GenerationItem: FC = ({ ) } - {currentTab === 'RESULT' && ( + {(currentTab === 'RESULT' || !isWorkflow) && ( { - const content = workflowProcessData?.resultText - if (typeof content === 'string') - copy(content) + const copyContent = isWorkflow ? workflowProcessData?.resultText : content + if (typeof copyContent === 'string') + copy(copyContent) else - copy(JSON.stringify(content)) + copy(JSON.stringify(copyContent)) Toast.notify({ type: 'success', message: t('common.actionMsg.copySuccessfully') }) }}>