Skip to content

Commit

Permalink
fix: when on-error should render fileList
Browse files Browse the repository at this point in the history
  • Loading branch information
eJayYoung committed Jul 26, 2019
1 parent eb6fb56 commit bb98b57
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/uploader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@ export default {
uploadFile(blob, fileItem).then((result) => {
fileList.push(fileItem);
this.$emit('on-change', fileItem, fileList);
}).catch(e => {
fileList.push(fileItem);
});
} else {
fileList.push(fileItem);
Expand Down

0 comments on commit bb98b57

Please sign in to comment.