Explorar o código

Update actions.js (#494)

Carlos M. Trinidad %!s(int64=8) %!d(string=hai) anos
pai
achega
154afeac0f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)
 }