Skip to content

Commit

Permalink
mod: code review
Browse files Browse the repository at this point in the history
  • Loading branch information
hetao92 committed Dec 16, 2022
1 parent ca0a9a3 commit 1c290b3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/pages/Import/FileUpload/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,8 @@ const FileUpload = () => {
setLoading(true);
uploadFile(fileList).then(res => {
if(res.code === 0) {
setTimeout(() => {
getFileList();
message.success(intl.get('import.uploadSuccessfully'));
}, 2000);
message.success(intl.get('import.uploadSuccessfully'));
getFileList();
} else {
setLoading(false);
}
Expand Down

0 comments on commit 1c290b3

Please sign in to comment.