let members=[{id:3, seal:'XXXXX', name:'Test'}, {}, {}]
axios.get("xxx" + seal + "/xx")
.then(response => {
this.articleStream = this.members.forEach(item => {
response.data.map(i => (i.user_id = item.id));
});
})
在 axios 调用中,articleStream 数组需要检查在axios 调用期间发送的user_idwith idinmembers数组,并将from映射到. 但目前它没有发送正确的数组。sealnamemembersarticleStream
从 axios 调用返回的数组如下所示:
[{ id: 5, user_id: 3},{}]
繁星coding
侃侃无极
相关分类