1、对象扩展运算符...【后台传参】
et fast = {
...res.data.product,
title: res.data.name,
};
2、object.assign【合并对象】
let another = {
buyMoreTicketLogo: 1,
buySeatType: 2,
};
this.xx.map((info, index) => {
Object.assign(another, {
from: info.fromStation,
seatFailureParam: {
from: this.trains[0].fromStation,
}
});
}