<el-upload
:action="uploadUrl"
accept="image/jpeg,image/png"
multiple
:limit="5"
:data="uploadConfig"
:on-remove="(file, fileList) => { return handleRemoveByLogo1(file, fileList, 1); }"
:before-remove="beforeRemove1"
:before-upload="beforeUploadByLogo"
:on-exceed="handleExceed"
:on-preview="handlePreview1"
:on-success="(res, file, files) => { return handleSuccessLogo1(res, file, files, 1); }"
:file-list="imgJson[1].fileList"
list-type="picture-card">
<img src="./img/camera.png" />
<span>拍照确认</span>
</el-upload>
在使用el-upload中,上传多个文件报错 Uncaught TypeError: Cannot set property 'status' of null
情况多发生为手动修改了 fileList的值。
绑定的file-list的图片数据源,自己不能手动进行修改,如果手动修改之后,上传多张图片就会报错 Cannot set property 'status' of null。