Browse Source

Upload: fix default status of fileList (#6571)

相学长 7 năm trước cách đây
mục cha
commit
fa00fcfbf9
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      packages/upload/src/index.vue

+ 1 - 1
packages/upload/src/index.vue

@@ -127,7 +127,7 @@ export default {
       handler(fileList) {
         this.uploadFiles = fileList.map(item => {
           item.uid = item.uid || (Date.now() + this.tempIndex++);
-          item.status = 'success';
+          item.status = item.status || 'success';
           return item;
         });
       }