diff --git a/src/components/shopping-cart/index.vue b/src/components/shopping-cart/index.vue index 33bdbc1..f4a9fe5 100644 --- a/src/components/shopping-cart/index.vue +++ b/src/components/shopping-cart/index.vue @@ -33,7 +33,7 @@ import { CartTypeEnum } from "@/types/cart"; const router = useRouter(); const shoppingCartStore = useShoppingCartStore(); - const shoppingCartList = ref(shoppingCartStore.getShoppingCartByMall); + const shoppingCartList = ref(shoppingCartStore.getShoppingCartByMall); const totalPrice = computed(() => { return shoppingCartList.value.reduce((acc, item) => acc + item.price * item.count, 0); diff --git a/src/views/restaurant/detail.vue b/src/views/restaurant/detail.vue index f987764..207ba80 100644 --- a/src/views/restaurant/detail.vue +++ b/src/views/restaurant/detail.vue @@ -25,22 +25,20 @@ /份 -
加入购物车
+
+ + 加入购物车 +
- + - @@ -52,8 +50,6 @@ import { CartTypeEnum } from "@/types/cart"; - - const val = ref(1); const { foodDetail } = useRestaurantFoodDetail();