已数组作为参考过滤数组数据

this.purchaseDetailList = this.purchaseDetailList.filter((item) => !this.addDataList.some((ele) => ele.id === item.id))
posted @ 2022-08-31 09:15  简单易懂  阅读(11)  评论(0编辑  收藏  举报