版权声明: https://blog.csdn.net/qq_27721169/article/details/82906260
<el-upload action="#" ref="upload" list-type="picture" :show-file-list="true" :limit="1" :http-request="handleUpload">
<el-button size="small" type="primary">点击上传</el-button>
</el-upload>
上传完成后执行清空
this.$refs.upload.clearFiles()
如果有多个组件可以使用:file-list
<el-upload action="#" ref="upload" :file-list="normal" list-type="picture" :show-file-list="true" :limit="1" :http-request="uploadAvatarNormal">
<el-button size="small" type="primary">点击上传图片</el-button>
</el-upload>
然后清空normal字段即可