mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
feat: enable document download option in ImportDocumentDialog
--bug=1060849 --user=刘瑞斌 【知识库】文档的批量设置,负载没有带上允许下载的设置数据,导致设置失败 https://www.tapd.cn/62980211/s/1762350
This commit is contained in:
parent
d0266de89f
commit
2434acf685
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue