组中的对象根据某个值去重"/>
数组中的对象根据某个值去重
this.checkedDataPower = this.checkedDataPower.reduce((preVal, curVal) => {if (!obj[curVal.dataPowerCode]) {obj[curVal.dataPowerCode] = true;preVal.push(curVal);}return preVal;
}, []);
更多推荐
数组中的对象根据某个值去重
发布评论