From aa41ecbc52f0ea0974cddbe13c647903a9fd8a75 Mon Sep 17 00:00:00 2001 From: YeMingfei666 <1619116647@qq.com> Date: Mon, 15 Dec 2025 17:32:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=86=8D=E6=9D=A5=E4=B8=80?= =?UTF-8?q?=E5=8D=95=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/product/index.vue | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/pages/product/index.vue b/pages/product/index.vue index 1a71bae..ddfaa39 100644 --- a/pages/product/index.vue +++ b/pages/product/index.vue @@ -1515,7 +1515,9 @@ is_print: 1 }); } - + + + let socketInitFinished=false // 收到的消息变化 async function onMessage(Message) { if (Message) { @@ -1539,6 +1541,11 @@ isLoading.value = false; // 初始化商品数量 // setGoodsInitSel(Message.data) + if(!socketInitFinished){ + useSocket.chnageInitMessage(options.initMessage) + socketInitFinished=true + } + } // 转桌成功 @@ -2170,7 +2177,7 @@ ...options.initMessage, ...extraInitPar }, onMessage); - useSocket.chnageInitMessage(options.initMessage) + console.log('onLoad:e', e); cartStore.setOldOrder({