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:
Magicbook1108
2026-04-16 20:37:38 +08:00
committed by GitHub
parent 4a9bfd18bc
commit f906a203bb

View File

@@ -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',
});