This commit is contained in:
aihe 2024-12-05 12:53:50 +08:00
parent 6559710fae
commit b2bf3a43a7

View File

@ -162,7 +162,8 @@
handleDelGood(index) { handleDelGood(index) {
this.modelInfo.cargoList.splice(index, 1) this.modelInfo.cargoList.splice(index, 1)
}, },
handleAddGood(item = { }) { handleAddGood(item = { }) {
this.modelInfo.cargoList = this.modelInfo.cargoList || []
this.modelInfo.cargoList.push({ this.modelInfo.cargoList.push({
...item ...item
}) })