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)