浏览代码

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)
 }