Skip to content

Commit feeae39

Browse files
tkavenktsn
authored andcommitted
Update actions.md (#696)
1 parent eb68beb commit feeae39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/zh-cn/actions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const store = new Vuex.Store({
2727

2828
Action 函数接受一个与 store 实例具有相同方法和属性的 context 对象,因此你可以调用 `context.commit` 提交一个 mutation,或者通过 `context.state``context.getters` 来获取 state 和 getters。当我们在之后介绍到 [Modules](modules.md) 时,你就知道 context 对象为什么不是 store 实例本身了。
2929

30-
实践中,我们会经常会用到 ES2015 的 [参数解构](https://github.com/lukehoban/es6features#destructuring) 来简化代码(特别是我们需要调用 `commit` 很多次的时候):
30+
实践中,我们会经常用到 ES2015 的 [参数解构](https://github.com/lukehoban/es6features#destructuring) 来简化代码(特别是我们需要调用 `commit` 很多次的时候):
3131

3232
``` js
3333
actions: {

0 commit comments

Comments
 (0)