浏览代码

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();
       }
     }