From cb6fa28e2aaf893273c1421ac48bb72894abf729 Mon Sep 17 00:00:00 2001 From: YeMingfei666 <1619116647@qq.com> Date: Wed, 9 Apr 2025 17:08:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=B8=B4=E6=97=B6?= =?UTF-8?q?=E8=8F=9C=E6=B7=BB=E5=8A=A0=E6=88=90=E5=8A=9F=E6=9C=AA=E5=8A=A0?= =?UTF-8?q?=E5=85=A5=E8=B4=AD=E7=89=A9=E8=BD=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/carts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/modules/carts.ts b/src/store/modules/carts.ts index 12154fa..69c4db6 100644 --- a/src/store/modules/carts.ts +++ b/src/store/modules/carts.ts @@ -648,7 +648,7 @@ export const useCartsStore = defineStore("carts", () => { return ElMessage.warning(msg.message || '该商品已存在') } const skuData = getProductDetails({ product_id: msg.data.product_id, sku_id: msg.data.sku_id }) - if (skuData) { + if (skuData || msg.data.is_temporary) { const newGoods = { ...skuData, ...msg.data } console.log('newGoods', newGoods) list.value.push(newGoods)