feat: enable document download option in ImportDocumentDialog

--bug=1060849 --user=刘瑞斌 【知识库】文档的批量设置,负载没有带上允许下载的设置数据,导致设置失败 https://www.tapd.cn/62980211/s/1762350
This commit is contained in:
CaptainB 2025-08-27 15:07:36 +08:00
parent d0266de89f
commit 2434acf685

View File

@ -132,7 +132,7 @@ const form = ref<any>({
selector: '',
hit_handling_method: 'optimization',
directly_return_similarity: 0.9,
allow_download: false,
allow_download: true,
})
//
@ -168,7 +168,7 @@ watch(dialogVisible, (bool) => {
selector: '',
hit_handling_method: 'optimization',
directly_return_similarity: 0.9,
allow_download: false,
allow_download: true,
}
isImport.value = false
documentType.value = ''
@ -244,6 +244,7 @@ const submit = async (formEl: FormInstance | undefined) => {
hit_handling_method: form.value.hit_handling_method,
directly_return_similarity: form.value.directly_return_similarity,
id_list: documentList.value,
allow_download: form.value.allow_download,
}
loadSharedApi({ type: 'document', systemType: apiType.value })
.putBatchEditHitHandling(id, obj, loading)