|
|
@@ -142,11 +142,14 @@ export default {
|
|
|
});
|
|
|
uploadImagev(form).then((res) => {
|
|
|
if (res.code == 200) {
|
|
|
- console.log(JSON.stringify(res.data));
|
|
|
// that.imgArr = res.data.url;
|
|
|
+ let imgArr = [];
|
|
|
+ res.data.forEach((item) => {
|
|
|
+ imgArr.push(item.url);
|
|
|
+ });
|
|
|
loind1.clear();
|
|
|
that.$toast('上传成功!');
|
|
|
- that.$emit('newimgarr', { fileUrl: res.data.url, type: that.type });
|
|
|
+ that.$emit('newimgarr', { fileUrl: imgArr.join(','), type: that.type });
|
|
|
} else {
|
|
|
that.$toast('上传失败!');
|
|
|
}
|