el-uplod报错cannot set property 'status' of undefined

el-uplod报错cannot set property 'status' of undefined_第1张图片
原因:fileList设置为空/空数组/undefined导致的
解决:fileList不要设置为空/空数组/undefined
解决2:在uploadSuccess的函数里使用setimeout延迟清空,
setTimeout(() => {

this.$refs.upload.clearFiles()

}, 1000);

你可能感兴趣的:(html5前端)