let list = [];
for (let i = 0; i < this.cockpitData.length; i++) {
let res = JSON.parse(
JSON.stringify(this.cockpitData[i])
原数组'areaname'修改为 name
.replace(/areaname/g, 'name')
);
list.push(res);
}
console.log(111, list)