mirror of
https://github.com/langgenius/dify.git
synced 2026-05-05 18:08:07 +08:00
merge main
This commit is contained in:
@ -154,9 +154,9 @@ export const useUpdateChildSegment = () => {
|
||||
export const useSegmentBatchImport = () => {
|
||||
return useMutation({
|
||||
mutationKey: [NAME_SPACE, 'batchImport'],
|
||||
mutationFn: (payload: { url: string; body: FormData }) => {
|
||||
mutationFn: (payload: { url: string; body: { upload_file_id: string } }) => {
|
||||
const { url, body } = payload
|
||||
return post<BatchImportResponse>(url, { body }, { bodyStringify: false, deleteContentType: true })
|
||||
return post<BatchImportResponse>(url, { body })
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user