fix:多选组件返回图片response数组
This commit is contained in:
parent
99f320d80b
commit
761ae58959
|
|
@ -179,13 +179,14 @@
|
|||
}
|
||||
},
|
||||
success(res, file,fileList){
|
||||
let ids = [];
|
||||
let ids = [],files=[];
|
||||
for(let i = 0;i<fileList.length;i++){
|
||||
if(fileList[i].response!==undefined){
|
||||
files.push(fileList[i].response)
|
||||
ids.push(fileList[i].response.id)
|
||||
}
|
||||
}
|
||||
this.$emit('imagesChange', ids)
|
||||
this.$emit('imagesChange', ids, files);
|
||||
var os = this.onSuccess(res, file)
|
||||
|
||||
if(os!=undefined && os==false){
|
||||
|
|
|
|||
Loading…
Reference in New Issue