Browse Source

Send the products data in the checkout action

Just to respect the arguments that the checkout option is waiting for.
Sébastien Chopin 9 năm trước cách đây
mục cha
commit
33a99070e2
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      examples/shopping-cart/components/Cart.vue

+ 1 - 1
examples/shopping-cart/components/Cart.vue

@@ -8,7 +8,7 @@
       </li>
     </ul>
     <p>Total: {{ total | currency }}</p>
-    <p><button :disabled="!products.length" @click="checkout">Checkout</button></p>
+    <p><button :disabled="!products.length" @click="checkout(products)">Checkout</button></p>
     <p v-show="checkoutStatus">Checkout {{ checkoutStatus }}.</p>
   </div>
 </template>