Prechádzať zdrojové kódy

Send the products data in the checkout action

Just to respect the arguments that the checkout option is waiting for.
Sébastien Chopin 9 rokov pred
rodič
commit
33a99070e2

+ 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>