ElementUI踩坑心得记录(未完结)
使用<el-upload>进行手动上传
<el-upload class="upload-button" multiple ref="xxx" :auto-upload="false" :action="上传接口" :file-list="存储文件键值对的数组" /> <button @click="upload">上传</button> upload(){ this.$refs.xxx.submit(); //手动上传方法,在el-upload标签外也能使用 }