feat: add file icon to table of FileManager #345 (#543)

### 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:
balibabu
2024-04-25 19:06:24 +08:00
committed by GitHub
parent 26003b5076
commit 1dcd439c58
19 changed files with 317 additions and 154 deletions

View File

@@ -103,14 +103,14 @@ export const useUploadFile = () => {
const dispatch = useDispatch();
const uploadFile = useCallback(
(file: UploadFile, parentId: string, path: string) => {
(fileList: UploadFile[], parentId: string) => {
try {
return dispatch<any>({
type: 'fileManager/uploadFile',
payload: {
file,
file: fileList,
parentId,
path,
path: fileList.map((file) => (file as any).webkitRelativePath),
},
});
} catch (errorInfo) {