mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-06-29 23:41:12 +08:00
Fix doc generator (#14160)
### What problem does this PR solve? Fix doc generator ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@@ -9,10 +9,10 @@ const {
|
||||
getAllParentFolder,
|
||||
createFolder,
|
||||
connectFileToKnowledge,
|
||||
get_document_file,
|
||||
getDocumentFile,
|
||||
getFile,
|
||||
moveFile,
|
||||
get_document_file_download,
|
||||
getDocumentFileDownload,
|
||||
} = api;
|
||||
|
||||
const methods = {
|
||||
@@ -46,7 +46,7 @@ const methods = {
|
||||
responseType: 'blob',
|
||||
},
|
||||
getDocumentFile: {
|
||||
url: get_document_file,
|
||||
url: getDocumentFile,
|
||||
method: 'get',
|
||||
responseType: 'blob',
|
||||
},
|
||||
@@ -62,7 +62,7 @@ const fileManagerService = registerServer<keyof typeof methods>(
|
||||
);
|
||||
|
||||
export const downloadFile = (data: { docId: string; ext: string }) => {
|
||||
return request.get(get_document_file_download(data.docId), {
|
||||
return request.get(getDocumentFileDownload(data.docId), {
|
||||
params: { ext: data.ext },
|
||||
responseType: 'blob',
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user