fix: 修复重复代码
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Agent
2026-03-24 10:01:41 +00:00
parent 3ee4a6cccd
commit cd9e2edc8e

View File

@@ -199,19 +199,12 @@ export default {
this.orderItems.push({ this.orderItems.push({
productId: product.productId, productId: product.productId,
productName: product.name,
price: product.price,
quantity: 1
})
this.calcAmount()
},
productName: product.name, productName: product.name,
spec: product.spec, spec: product.spec,
unit: product.unit, unit: product.unit,
price: product.price, price: product.price,
quantity: 1 quantity: 1
}) })
this.calcAmount() this.calcAmount()
}, },
removeItem(index) { removeItem(index) {