From daa8de48b3be543c4c257881a5bf4cb5f30d7af6 Mon Sep 17 00:00:00 2001 From: YeMingfei666 <1619116647@qq.com> Date: Mon, 19 Aug 2024 17:37:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E8=AF=BE=E4=B8=8B=E5=8D=95=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E5=88=87=E6=8D=A2=E7=94=A8=E6=88=B7=E6=97=B6=E9=80=BB?= =?UTF-8?q?=E8=BE=91=201.=E8=8E=B7=E5=8F=96=E6=96=B0=E7=9A=84=E5=8F=96?= =?UTF-8?q?=E9=A4=90=E7=A0=81=202.=E6=9B=B4=E6=96=B0=E7=94=A8=E6=88=B7id?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/table.js | 4 ++-- src/views/table/components/table-diancan.vue | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/api/table.js b/src/api/table.js index 672a4f7..b9f5bc9 100644 --- a/src/api/table.js +++ b/src/api/table.js @@ -299,7 +299,7 @@ export function $getCacheOrder(data) { export function $setUser(data) { return request({ url: `/api/place/updateVip`, - method: "delete", + method: "put", data:{ shopId: localStorage.getItem("shopId"), ...data @@ -310,7 +310,7 @@ export function $setUser(data) { export function $delOrder(data) { return request({ url: `/api/place/order`, - method: "put", + method: "delte", data:{ shopId: localStorage.getItem("shopId"), ...data diff --git a/src/views/table/components/table-diancan.vue b/src/views/table/components/table-diancan.vue index 147868f..691e816 100644 --- a/src/views/table/components/table-diancan.vue +++ b/src/views/table/components/table-diancan.vue @@ -1039,7 +1039,8 @@ export default { }, }, watch: { - "vipUser.id":function(val){ + "vipUser.id":async function(val){ + this.masterId= await this.getMasterId() $setUser({ tableId:this.table.tableId, masterId:this.masterId,