From bb98b57013bbb54c3d85974039bc8e1c3d960e32 Mon Sep 17 00:00:00 2001 From: eJay Date: Fri, 26 Jul 2019 15:34:02 +0800 Subject: [PATCH] fix: when on-error should render fileList --- src/components/uploader.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/uploader.vue b/src/components/uploader.vue index 12fc9e6..a97f9e3 100644 --- a/src/components/uploader.vue +++ b/src/components/uploader.vue @@ -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);