<el-image class="imgs-style" :src="val.fileUrl" v-for="(val) in itemB.imgs" :preview-src-list="previewSrcList(itemB.imgs)"></el-image>
在js里面
computed: {
previewSrcList () {
return function (val) {
let list = [];
val.forEach( element => {
list.push(element.fileUrl);
});
return list;
}
}
},