소스 검색

Update actions.js (#494)

Carlos M. Trinidad 8 년 전
부모
커밋
154afeac0f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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)
 }