fix: update loadSharedApi type from 'knowledge' to 'document'

--bug=1057666 --user=刘瑞斌 【知识库】生成关联问题报错 https://www.tapd.cn/62980211/s/1720016
This commit is contained in:
CaptainB 2025-06-30 11:01:22 +08:00
parent cc692ffbe1
commit 64efc05c41

View File

@ -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'))