From 792eaa3af48bcc2409ec91e4cf988aba2017e64a Mon Sep 17 00:00:00 2001 From: lenghui Date: Thu, 5 Dec 2024 13:28:51 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=84=E7=BA=A6=E6=88=90=E5=8A=9F=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E7=A0=81=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vueHomilyLink/src/views/LiveView.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vueHomilyLink/src/views/LiveView.vue b/vueHomilyLink/src/views/LiveView.vue index 557674f..146931e 100644 --- a/vueHomilyLink/src/views/LiveView.vue +++ b/vueHomilyLink/src/views/LiveView.vue @@ -70,7 +70,7 @@ function booking(liveId, userId) { liveApi.addReservation(liveId,userId) .then(resp => { console.log(resp.code); - if (resp.code == 0) { + if (resp.code == 200) { getLive(); ElMessage.success("预约成功"); } else { @@ -82,7 +82,7 @@ function booking(liveId, userId) { function cancelBooking(liveId, userId) { liveApi.cancelReservation(liveId, userId) .then(resp => { - if (resp.code == 0) { + if (resp.code == 200) { ElMessage.success("取消预约成功"); } else { ElMessage.error("取消预约失败,请联系管理员");