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 file icon to table of FileManager #345 fix: modify datasetDescription ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -85,12 +85,3 @@ export const downloadFile = ({
|
||||
downloadElement.click();
|
||||
document.body.removeChild(downloadElement);
|
||||
};
|
||||
|
||||
export const getFilePathByWebkitRelativePath = (file: File) => {
|
||||
const path = file.webkitRelativePath;
|
||||
return path;
|
||||
// if (path !== '') {
|
||||
// return path.slice(0, path.lastIndexOf('/'));
|
||||
// }
|
||||
// return path;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user