fix: 支付防抖

This commit is contained in:
2025-12-22 18:51:28 +08:00
parent 8be21f8307
commit 37192b0ba4
4 changed files with 6 additions and 34 deletions

View File

@@ -29,6 +29,7 @@
<script setup>
import { computed, defineProps, defineEmits } from "vue";
import { DebounceUtils } from "@/utils";
const props = defineProps({
modelValue: {
@@ -59,9 +60,9 @@ const totalAmt = computed(() => {
return count.value * Number(specificationPrice) * totalDays;
});
const handleBooking = () => {
const handleBooking = DebounceUtils.createDebounce(() => {
emit("payClick", props.orderData);
};
}, 1000);
</script>