Skip to content

Commit 610b00c

Browse files
committed
feat: update data retrieval logic to conditionally filter files based on node type
1 parent 2cbdf61 commit 610b00c

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎ui/src/views/knowledge-workflow/component/action/DataSource.vue‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,11 @@ const filterSuccessFiles = (data: any): any => {
154154
}
155155
}
156156
const get_data = () => {
157-
return filterSuccessFiles(form_data.value)
157+
const node = source_node_list.value?.find((n: any) => n.id === base_form_data.value.node_id)
158+
// 仅本地上传文件需要按上传状态过滤,工具数据源的文件列表原样提交。
159+
return node?.type === WorkflowType.DataSourceLocalNode
160+
? filterSuccessFiles(form_data.value)
161+
: form_data.value
158162
}
159163
watch(
160164
source_node_list,

0 commit comments

Comments
 (0)