我正在尝试克隆一个对象并删除两个属性,
this.clone = Object.assign({}, this.purchaseOrder)
console.log("0clone", this.clone)
this.clone.client_purchase_order_items.forEach((order, index) => {
delete order.list_of_measures;
delete order.isReadOnly;
});
console.log("purchase Order", this.purchaseOrder)
但它影响了克隆对象和我用于克隆的对象。我不想从this.purchase订单中删除属性。 我该怎么办?