Browse Source

clear inptu value when uploader click

baiyaaaaa 8 years ago
parent
commit
5536efab5c
1 changed files with 1 additions and 0 deletions
  1. 1 0
      packages/upload/src/upload.vue

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

@@ -142,6 +142,7 @@ export default {
     },
     },
     handleClick() {
     handleClick() {
       if (!this.disabled) {
       if (!this.disabled) {
+        this.$refs.input.value = null;
         this.$refs.input.click();
         this.$refs.input.click();
       }
       }
     }
     }