<el-upload
:action="uploadUrl" //直接上传的地址
:file-list="moduleInfo[key].fileList" // 文件的list 在本项目是for循环的上传组件所以会有key
:on-success="
(response, file, fileList) => {
handleAvatarSuccess(response, file, fileList, key)
}
"
:on-error="onError"
:before-upload="beforeAvatarUpload"
:accept="acceptType"
:ref="'upload' + key" //这里定义ref
>
<i class=