1.如何提交数组
1.例如数组对象
2.分解数组,逐个添加到一个对象中
this.followUpVisitArr.forEach((item) => {
if (item.visitor_name !== '' && item.base_image !== '') {
this.visitor[`visitor_img_${index}`] = item.base_image
this.visitor[`visitor_name_${index}`] = item.visitor_name
index++
}
})
把数组followUpVisitArr,分解到对象visitor中,根据排序依次命名‘visitor_img_${index}’,`visitor_name_${index}`
3.分解的结果
4.vi