diff --git a/src/sheep/stores/cart.ts b/src/sheep/stores/cart.ts index 2b587e6..0174104 100644 --- a/src/sheep/stores/cart.ts +++ b/src/sheep/stores/cart.ts @@ -73,7 +73,7 @@ export const useCartStore = defineStore("cartStore", { productId: v.productId, } }) - const { code }: any = await foodApi.updateShopCar({ merchantId: this.saveShopMerchantId, list, hardType: "SUPERMARKET" }) + const { code }: any = await foodApi.updateShopCar({ merchantId: this.shopMerchantId, list, hardType: "SUPERMARKET" }) if (code == 0) return await this.getShopCart() uni.showToast({ title: "更新购物车失败", icon: "none" }) },