//数组中对象去重
let newobj = {};
this.changePeitao = this.changePeitao.reduce((preVal, curVal) => {
newobj[curVal.id]?'':newobj[curVal.id]=preVal.push(curVal);
return preVal
}, [])
//数组中对象去重
let newobj = {};
this.changePeitao = this.changePeitao.reduce((preVal, curVal) => {
newobj[curVal.id]?'':newobj[curVal.id]=preVal.push(curVal);
return preVal
}, [])