瀏覽代碼

clear inptu value when uploader click

baiyaaaaa 8 年之前
父節點
當前提交
5536efab5c
共有 1 個文件被更改,包括 1 次插入0 次删除
  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();
       }
     }