优化订单跳转代客下单拉取不到历史数据的问题

This commit is contained in:
gyq
2026-03-28 17:38:38 +08:00
parent e3ddd70ce6
commit 2f2a152b46

View File

@@ -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 = {