Forráskód Böngészése

Update actions.js (#494)

Carlos M. Trinidad 8 éve
szülő
commit
154afeac0f
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      examples/counter-hot/store/actions.js

+ 1 - 1
examples/counter-hot/store/actions.js

@@ -9,6 +9,6 @@ export const incrementIfOdd = ({ commit, state }) => {
 
 export const incrementAsync = ({ commit }) => {
   setTimeout(() => {
-    commit('decrement')
+    commit('increment')
   }, 1000)
 }