mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? Feat: Run eslint when the project is running to standardize everyone's code #9377 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -368,16 +368,7 @@ export const useUploadCanvasFileWithProgress = (
|
||||
{
|
||||
url: api.uploadAgentFile(identifier || id),
|
||||
data: formData,
|
||||
onUploadProgress: ({
|
||||
loaded,
|
||||
total,
|
||||
progress,
|
||||
bytes,
|
||||
estimated,
|
||||
rate,
|
||||
upload,
|
||||
lengthComputable,
|
||||
}) => {
|
||||
onUploadProgress: ({ progress }) => {
|
||||
files.forEach((file) => {
|
||||
onProgress(file, (progress || 0) * 100);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user