Bläddra i källkod

Upload: fix handleRemove param error

Leopoldthecoder 7 år sedan
förälder
incheckning
9f9629d2bb
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      packages/upload/src/upload.vue

+ 2 - 2
packages/upload/src/upload.vue

@@ -90,12 +90,12 @@ export default {
             this.post(rawFile);
           }
         }, () => {
-          this.onRemove(rawFile, true);
+          this.onRemove(null, rawFile);
         });
       } else if (before !== false) {
         this.post(rawFile);
       } else {
-        this.onRemove(rawFile, true);
+        this.onRemove(null, rawFile);
       }
     },
     abort(file) {