From 2850cb94d45ee09d46895f6811011fcad9f5adc1 Mon Sep 17 00:00:00 2001 From: YeMingfei666 <1619116647@qq.com> Date: Mon, 17 Mar 2025 14:35:52 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E4=BB=A3=E5=AE=A2?= =?UTF-8?q?=E4=B8=8B=E5=8D=95=E4=BB=85=E4=B8=8B=E5=8D=95=E5=90=8E=E4=B8=8D?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=E5=8E=86=E5=8F=B2=E4=B8=8B=E5=8D=95=E6=95=B0?= =?UTF-8?q?=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/tool/Instead/components/carts/list.vue | 2 +- src/views/tool/Instead/index.vue | 11 +++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/views/tool/Instead/components/carts/list.vue b/src/views/tool/Instead/components/carts/list.vue index c33c96d..a200e6c 100644 --- a/src/views/tool/Instead/components/carts/list.vue +++ b/src/views/tool/Instead/components/carts/list.vue @@ -128,7 +128,7 @@ 仅下单 diff --git a/src/views/tool/Instead/index.vue b/src/views/tool/Instead/index.vue index 81bcca6..744e11b 100644 --- a/src/views/tool/Instead/index.vue +++ b/src/views/tool/Instead/index.vue @@ -398,10 +398,7 @@ async function createOrder(key) { if (res) { carts.clear(); carts.dataReset(); - if (key == "only-create") { - refresh(); - return; - } + if (res.userId) { const userRes = await shopUserApi.get({ userId: res.userId }); user.value = userRes; @@ -416,7 +413,9 @@ async function createOrder(key) { orderInfo.value = res1; carts.setOldOrder(res1); } - + if (key == "only-create") { + return; + } showOrder.value = true; if (key == "wx-aiplay") { nextTick(() => { @@ -815,7 +814,7 @@ $pl: 30px; height: 100%; max-height: calc(100vh - 256px); .left { - width: 330px; + width: 350px; padding-right: 14px; box-sizing: border-box; display: flex;