diff --git a/apps/application/flow/step_node/document_extract_node/impl/base_document_extract_node.py b/apps/application/flow/step_node/document_extract_node/impl/base_document_extract_node.py index 68eeadfe055..495cc5db0a6 100644 --- a/apps/application/flow/step_node/document_extract_node/impl/base_document_extract_node.py +++ b/apps/application/flow/step_node/document_extract_node/impl/base_document_extract_node.py @@ -17,12 +17,12 @@ class BaseDocumentExtractNode(IDocumentExtractNode): def save_context(self, details, workflow_manage): self.context['content'] = details.get('content') + self.context['document_list'] = details.get('document_list') self.context['exception_message'] = details.get('err_message') def execute(self, document, chat_id=None, **kwargs): get_buffer = FileBufferHandle().get_buffer - self.context['document_list'] = document content = [] if document is None or not isinstance(document, list): return NodeResult({'content': '', 'document_list': []}, {}) diff --git a/ui/src/components/execution-detail-card/index.vue b/ui/src/components/execution-detail-card/index.vue index f163b40c7a3..73b8b9afcf9 100644 --- a/ui/src/components/execution-detail-card/index.vue +++ b/ui/src/components/execution-detail-card/index.vue @@ -68,7 +68,12 @@ @@ -109,7 +119,7 @@
-

{{ $t('common.fileUpload.image') }}:

+

{{ $t('common.fileUpload.video') }}:

@@ -1422,6 +1494,13 @@ const isKnowLedge = computed(() => props.type === 'knowledge') const currentLoopNode = ref(0) const currentParagraph = ref(0) const currentWriteContent = ref(0) + +// 下载文件 +const downloadFile = (file: any) => { + if (file && file.url) { + window.open(file.url, '_blank') + } +}