mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 10:12:51 +00:00
fix: update loadSharedApi type from 'knowledge' to 'document'
--bug=1057666 --user=刘瑞斌 【知识库】生成关联问题报错 https://www.tapd.cn/62980211/s/1720016
This commit is contained in:
parent
cc692ffbe1
commit
64efc05c41
|
|
@ -165,7 +165,7 @@ const submitHandle = async (formEl: FormInstance) => {
|
|||
document_id_list: idList.value,
|
||||
state_list: stateMap[state.value],
|
||||
}
|
||||
loadSharedApi({ type: 'knowledge', systemType: props.apiType })
|
||||
loadSharedApi({ type: 'document', systemType: props.apiType })
|
||||
.putBatchGenerateRelated(id, data, loading)
|
||||
.then(() => {
|
||||
MsgSuccess(t('views.document.generateQuestion.successMessage'))
|
||||
|
|
|
|||
Loading…
Reference in New Issue