在upLoad调用接口,并把item传上去
<el-upload
ref="upload"
multiple
:limit="9"
:show-file-list="false"
:http-request="upLoad"
:before-upload="beforeUpload"
:on-success="handleUploadSuccess"
:on-exceed="handleExceed"
list-type="picture-card">
<i class="el-icon-plus"></i>
</el-upload>
handleExceed (e, fileList) {
this.$message.error('最多只能选择九张')
},
upLoad (item) {
console.log(item)
}