소스 검색

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>