the three pictures I uploaded here have been successful
but only executed once
: on-success
so I can"t add the uploaded picture to the list of uploaded pictures
this is my upload component code:
<el-upload
multiple
name="picture"
:action="uploadFileUrl"
:file-list="goodsImages"
:on-remove="(file, fileList) => { return handleUploaderRemove(file, fileList, "goodsImagesUploader") }"
:on-success="handleGoodsImagesUploadSuccess"
:before-upload="(file) => { return handleBeforeUpload(file, "0")}"
:limit="6"
list-type="picture-card"
>
handleGoodsImagesUploadSuccess function:
handleGoodsDetailUploadSuccess (response, file, fileList) {
console.log("", response)
let tempUploadList = {
flag: 1,
status: file.status,
uid: file.uid,
url: response.data
}
this.detailImages.push(tempUploadList)
},