feat: 商品的计算问题

This commit is contained in:
2025-11-26 22:24:04 +08:00
parent f422dbaa00
commit f69225dbff

View File

@@ -55,9 +55,8 @@ const count = computed({
}); });
const totalAmt = computed(() => { const totalAmt = computed(() => {
const { totalDays } = props.selectedDate; const { totalDays = 1 } = props.selectedDate;
const { specificationPrice } = props.orderData; const { specificationPrice } = props.orderData;
return count.value * Number(specificationPrice) * totalDays; return count.value * Number(specificationPrice) * totalDays;
}); });
</script> </script>