mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? Feat: Add tooltip to question item of ChunkCreatingModal #3873 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -112,20 +112,6 @@ export const downloadFileFromBlob = (blob: Blob, name?: string) => {
|
||||
window.URL.revokeObjectURL(url);
|
||||
};
|
||||
|
||||
export const downloadFile = async ({
|
||||
id,
|
||||
filename,
|
||||
target,
|
||||
}: {
|
||||
id: string;
|
||||
filename?: string;
|
||||
target?: string;
|
||||
}) => {
|
||||
const response = await fileManagerService.getFile({}, id);
|
||||
const blob = new Blob([response.data], { type: response.data.type });
|
||||
downloadFileFromBlob(blob, filename);
|
||||
};
|
||||
|
||||
export const downloadDocument = async ({
|
||||
id,
|
||||
filename,
|
||||
|
||||
Reference in New Issue
Block a user