Browse Source

docs: add timeout amount in actions

Evan You 8 năm trước cách đây
mục cha
commit
33ddea7d8d
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      docs/en/actions.md

+ 2 - 2
docs/en/actions.md

@@ -52,7 +52,7 @@ actions: {
   incrementAsync ({ commit }) {
     setTimeout(() => {
       commit('increment')
-    })
+    }, 1000)
   }
 }
 ```
@@ -129,7 +129,7 @@ actions: {
       setTimeout(() => {
         commit('someMutation')
         resolve()
-      })
+      }, 1000)
     })
   }
 }