From 2fcadf3658ee3b9d775bd80c3136ba49acc7d71e Mon Sep 17 00:00:00 2001 From: Janie <109517022+Janie06@users.noreply.github.com> Date: Wed, 29 Mar 2023 18:46:08 +0800 Subject: [PATCH] =?UTF-8?q?update=20checkout/id=20API=E5=A2=9E=E5=8A=A0asy?= =?UTF-8?q?nc/await?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FrontEnd/pages/service/checkout/_id.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FrontEnd/pages/service/checkout/_id.vue b/FrontEnd/pages/service/checkout/_id.vue index 0124954..570a891 100644 --- a/FrontEnd/pages/service/checkout/_id.vue +++ b/FrontEnd/pages/service/checkout/_id.vue @@ -683,7 +683,7 @@ export default { console.log(err); }); }, - payNow() { + async payNow() { let isPass1 = this.$refs.ref_Booking.getValidation();//this.bookingDetail_Validation; let isPass2 = true; this.$refs.purchaserInfo.updatePurchaserInfo(true);//this.purchaserInfo_Validation; @@ -741,7 +741,7 @@ export default { this.isLoading = true; let jsonData = null; let statusCode = 'failed' - this.$axios.post( `/trending/api/Onsite/Booking`, params) + await this.$axios.post( `/trending/api/Onsite/Booking`, params) .then((response) => { //console.log(response); this.isLoading = false;