fix: 代客下单优化离开代客下单页面时主动断开scoket,添加优惠券修改,修改获取优惠券记录请求方式改为get
This commit is contained in:
@@ -700,6 +700,11 @@ function init() {
|
||||
getGoods();
|
||||
}
|
||||
|
||||
onBeforeRouteLeave(() => {
|
||||
console.log("离开");
|
||||
carts.disconnect();
|
||||
});
|
||||
|
||||
onMounted(async () => {
|
||||
const { id, tableCode } = route.query;
|
||||
if (id) {
|
||||
|
||||
Reference in New Issue
Block a user