Skip to content

Commit 2434acf

Browse files
committed
feat: enable document download option in ImportDocumentDialog
--bug=1060849 --user=刘瑞斌 【知识库】文档的批量设置,负载没有带上允许下载的设置数据,导致设置失败 https://www.tapd.cn/62980211/s/1762350
1 parent d0266de commit 2434acf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ui/src/views/document/component/ImportDocumentDialog.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ const form = ref<any>({
132132
selector: '',
133133
hit_handling_method: 'optimization',
134134
directly_return_similarity: 0.9,
135-
allow_download: false,
135+
allow_download: true,
136136
})
137137
138138
// 文档设置
@@ -168,7 +168,7 @@ watch(dialogVisible, (bool) => {
168168
selector: '',
169169
hit_handling_method: 'optimization',
170170
directly_return_similarity: 0.9,
171-
allow_download: false,
171+
allow_download: true,
172172
}
173173
isImport.value = false
174174
documentType.value = ''
@@ -244,6 +244,7 @@ const submit = async (formEl: FormInstance | undefined) => {
244244
hit_handling_method: form.value.hit_handling_method,
245245
directly_return_similarity: form.value.directly_return_similarity,
246246
id_list: documentList.value,
247+
allow_download: form.value.allow_download,
247248
}
248249
loadSharedApi({ type: 'document', systemType: apiType.value })
249250
.putBatchEditHitHandling(id, obj, loading)

0 commit comments

Comments
 (0)