Skip to content

Commit e0882de

Browse files
fix: generate related debounce
1 parent efa5c19 commit e0882de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/src/components/generate-related-dialog/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,14 +160,14 @@ const submitHandle = async (formEl: FormInstance) => {
160160
prompt.save(user.userInfo?.id as string, form.value)
161161
if (apiType.value === 'paragraph') {
162162
const data = { ...form.value, paragraph_id_list: idList.value }
163-
paragraphApi.batchGenerateRelated(id, documentId, data).then(() => {
163+
paragraphApi.batchGenerateRelated(id, documentId, data, loading).then(() => {
164164
MsgSuccess('生成问题成功')
165165
emit('refresh')
166166
dialogVisible.value = false
167167
})
168168
} else if (apiType.value === 'document') {
169169
const data = { ...form.value, document_id_list: idList.value }
170-
documentApi.batchGenerateRelated(id, data).then(() => {
170+
documentApi.batchGenerateRelated(id, data, loading).then(() => {
171171
MsgSuccess('生成问题成功')
172172
emit('refresh')
173173
dialogVisible.value = false

0 commit comments

Comments
 (0)