this.newArr.push(…that.selectedMergePackListThree1) // 去重 const id = ‘id’ const r = that.newArr.reduce((all, next) => all.some((atom) => atom[id] == next[id]) ? all : […all, next], []) that.newArr = r 文章导航 html2canvas截图 下载图片 vue项目踩坑