以下方法适用于使用v-for循环出的多个文件/图片上传组件(el-upload)的区分或者多个上传组件通过传递参数进行区分区分
文档:on-success
文件上传成功时的钩子 返回的参数为function(response, file, fileList)
我记得table
组件里的也是这样用的
:before-upload="(file) => { return beforeAvatarUpload(file,index)}"
:on-success="(response, file, fileList)=>{return handleAvatarSuccess(response, file, fileList,index)}"
网友评论