1,上传功能
<el-upload action="" ref='upload' :http-request="handleFileUpload" :limit="1" :show-file-list="false" > <i class="el-icon-upload2"></i> </el-upload>
2,在上传后调用完接口后,直接清空上传的历史记录
this.$refs.upload.clearFiles() 标签:自定义,elementui,接口,第二次,上传,图片 From: https://www.cnblogs.com/ghc520/p/17823565.html