fix: 支付防抖
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user