Skip to content

Commit

Permalink
fix: generate related debounce
Browse files Browse the repository at this point in the history
  • Loading branch information
wangdan-fit2cloud committed Dec 31, 2024
1 parent efa5c19 commit e0882de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/src/components/generate-related-dialog/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e0882de

Please sign in to comment.