Compare commits

2 Commits

Author SHA1 Message Date
92f981769f feat: 商品计算报错问题 2025-11-26 22:47:17 +08:00
f69225dbff feat: 商品的计算问题 2025-11-26 22:24:04 +08:00
2 changed files with 5 additions and 2 deletions

View File

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

View File

@@ -3,7 +3,11 @@ import { defineStore } from "pinia";
export const useSelectedDateStore = defineStore("selectedDate", {
state() {
return {
selectedDate: {},
selectedDate: {
startDate: "",
endDate: "",
totalDays: 1,
},
};
},