Explorar el Código

clear inptu value when uploader click

baiyaaaaa hace 8 años
padre
commit
5536efab5c
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      packages/upload/src/upload.vue

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

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