Ver Fonte

'lastCheckout' should be 'checkoutStatus' to have any impact (#1036)

in [types.ADD_TO_CART] ...
    state.lastCheckout = null // seems to do nothing
    state.checkoutStatus = null // this makes more sense, hides checkout-msg when new item gets added to cart
88dev há 7 anos atrás
pai
commit
6dd70229a8
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      examples/shopping-cart/store/modules/cart.js

+ 1 - 1
examples/shopping-cart/store/modules/cart.js

@@ -29,7 +29,7 @@ const actions = {
 // mutations
 const mutations = {
   [types.ADD_TO_CART] (state, { id }) {
-    state.lastCheckout = null
+    state.checkoutStatus = null
     const record = state.added.find(p => p.id === id)
     if (!record) {
       state.added.push({