2020-09-11
作者:
爱学习的新一 | 来源:发表于
2020-09-11 17:35 被阅读0次methods: {
//上传文件
uploadImages(index,id){
this.arrId.push(id)
log(this.arrId)
//拼接字符串id
let ids = "";
for(let index in this.arrId){
ids = ids + this.arrId[index] + ",";
}
// console.log("ids====",ids)
//去除ids最后一个逗号
ids = ids.substring(0,ids.length - 1);
// console.log("ids去除逗号后====",ids)
this.idArrList = ids
console.log(this.idArrList)
uploadFiles((res) => {
console.log(res.data)
this.urlList[index].url = res.data//替换图片路径
});
},
}
本文标题:2020-09-11
本文链接:https://www.haomeiwen.com/subject/hosbektx.html
网友评论