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)
|
prompt.save(user.userInfo?.id as string, form.value)
|
||||||
if (apiType.value === 'paragraph') {
|
if (apiType.value === 'paragraph') {
|
||||||
const data = { ...form.value, paragraph_id_list: idList.value }
|
const data = { ...form.value, paragraph_id_list: idList.value }
|
||||||
paragraphApi.batchGenerateRelated(id, documentId, data).then(() => {
|
paragraphApi.batchGenerateRelated(id, documentId, data, loading).then(() => {
|
||||||
MsgSuccess('生成问题成功')
|
MsgSuccess('生成问题成功')
|
||||||
emit('refresh')
|
emit('refresh')
|
||||||
dialogVisible.value = false
|
dialogVisible.value = false
|
||||||
})
|
})
|
||||||
} else if (apiType.value === 'document') {
|
} else if (apiType.value === 'document') {
|
||||||
const data = { ...form.value, document_id_list: idList.value }
|
const data = { ...form.value, document_id_list: idList.value }
|
||||||
documentApi.batchGenerateRelated(id, data).then(() => {
|
documentApi.batchGenerateRelated(id, data, loading).then(() => {
|
||||||
MsgSuccess('生成问题成功')
|
MsgSuccess('生成问题成功')
|
||||||
emit('refresh')
|
emit('refresh')
|
||||||
dialogVisible.value = false
|
dialogVisible.value = false
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user