let arr1 = [{id: 18, name: '首页'},{id: 19, name: '订单'}]
let arr2 = [{url: '/static/images/home.png'}, {url: '/static/images/order.png'}]
let tabList = []
arr1.forEach((item, index) => {
tabList.push({...item, ...arr2[index]})
})
// 输出结果为
console.log(tabList)//[{"id":18,"name":"首页"},{"id":19,"name":"订单"}]
01-02
1517
09-09
1761
12-12
219