Browse Source

预约成功状态码修改

dev
lenghui 7 months ago
parent
commit
792eaa3af4
  1. 4
      vueHomilyLink/src/views/LiveView.vue

4
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("取消预约失败,请联系管理员");

Loading…
Cancel
Save