From 2f1cc8d55dce14bd7f849978d1b853d3a14ef480 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=BF=97=E9=B9=8F?= <2916022834@qq.com> Date: Thu, 21 May 2026 14:58:52 +0800 Subject: [PATCH] 1 --- src/views/shoppingCart/order-summary.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/views/shoppingCart/order-summary.vue b/src/views/shoppingCart/order-summary.vue index eb8be2c..fe80c9a 100644 --- a/src/views/shoppingCart/order-summary.vue +++ b/src/views/shoppingCart/order-summary.vue @@ -61,6 +61,7 @@ const totalAmount = computed(() => props.list.reduce((pre, cur) => pre + cur.amount, 0).toFixed(2)) const handleCheckout = () => { const ids = props.list.map((v: any) => v.listingId) + if (ids.length === 0) return console.log('购买:', ids) CreateOrder(ids, true).then((res) => { router.go(0)