我用循环做了多个文件上传,如图
绑定上传事件 需要 一个 唯一标识
<el-button @click="upload(item.itemId)">上传文件</el-button>
item.id 做唯一标识
做个唯一标识,然后循环找到第一个不就行了嘛