Преглед изворни кода

Send the products data in the checkout action

Just to respect the arguments that the checkout option is waiting for.
Sébastien Chopin пре 9 година
родитељ
комит
33a99070e2
1 измењених фајлова са 1 додато и 1 уклоњено
  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>