From 2f2a152b4633d45f9cf725a2046bba2ee9701816 Mon Sep 17 00:00:00 2001 From: gyq <875626088@qq.com> Date: Sat, 28 Mar 2026 17:38:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=AE=A2=E5=8D=95=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E4=BB=A3=E5=AE=A2=E4=B8=8B=E5=8D=95=E6=8B=89=E5=8F=96?= =?UTF-8?q?=E4=B8=8D=E5=88=B0=E5=8E=86=E5=8F=B2=E6=95=B0=E6=8D=AE=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/tool/Instead/index.vue | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/views/tool/Instead/index.vue b/src/views/tool/Instead/index.vue index b3e622c..5547ffa 100644 --- a/src/views/tool/Instead/index.vue +++ b/src/views/tool/Instead/index.vue @@ -803,15 +803,14 @@ onMounted(async () => { // tableCode, // }); let res = '' - if (carts.table_code) { - res = await orderApi.getHistoryList({ - // orderId: carts.oldOrder.id, - tableCode: carts.table_code, - }); - } else { + if (id) { res = await orderApi.getHistoryList({ orderId: id, }) + } else { + res = await orderApi.getHistoryList({ + tableCode: carts.table_code, + }); } const noPayStatus = {