mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: generate related debounce
This commit is contained in:
parent
efa5c191e0
commit
e0882de139
|
|
@ -160,14 +160,14 @@ const submitHandle = async (formEl: FormInstance) => {
|
|||
prompt.save(user.userInfo?.id as string, form.value)
|
||||
if (apiType.value === 'paragraph') {
|
||||
const data = { ...form.value, paragraph_id_list: idList.value }
|
||||
paragraphApi.batchGenerateRelated(id, documentId, data).then(() => {
|
||||
paragraphApi.batchGenerateRelated(id, documentId, data, loading).then(() => {
|
||||
MsgSuccess('生成问题成功')
|
||||
emit('refresh')
|
||||
dialogVisible.value = false
|
||||
})
|
||||
} else if (apiType.value === 'document') {
|
||||
const data = { ...form.value, document_id_list: idList.value }
|
||||
documentApi.batchGenerateRelated(id, data).then(() => {
|
||||
documentApi.batchGenerateRelated(id, data, loading).then(() => {
|
||||
MsgSuccess('生成问题成功')
|
||||
emit('refresh')
|
||||
dialogVisible.value = false
|
||||
|
|
|
|||
Loading…
Reference in New Issue