cartParams () { // 数组对像
let carts = []
this.waitOrders.map((item) => { // 循环数组对象对每个数据进行处理 返回需要得数据
carts.push({ sku: item.productSn, quantity: item.quantity, type: item.type, cartId: item.id })
})
return carts
}
数组对象筛选(根据对象某几个key筛选)
最新推荐文章于 2025-07-07 10:52:39 发布
