想要的格式
sameValueConcat(data) {
const result = [];
let children = [];
let start = true;
for(let i = 0; i < data.length; i++) {
if(start) {
children.push(data[i]);
start = false;
}
console.log(data[i]);
if(data[i].pfv != data[i + 1]?.pfv) {
children.push(data[i]);
result.push(children);
children = [];
start = true;
}
}
return result;
},