Explorar el Código

Update actions.md (#696)

tkaven hace 7 años
padre
commit
feeae399dd
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      docs/zh-cn/actions.md

+ 1 - 1
docs/zh-cn/actions.md

@@ -27,7 +27,7 @@ const store = new Vuex.Store({
 
 Action 函数接受一个与 store 实例具有相同方法和属性的 context 对象,因此你可以调用 `context.commit` 提交一个 mutation,或者通过 `context.state` 和 `context.getters` 来获取 state 和 getters。当我们在之后介绍到 [Modules](modules.md) 时,你就知道 context 对象为什么不是 store 实例本身了。
 
-实践中,我们会经常用到 ES2015 的 [参数解构](https://github.com/lukehoban/es6features#destructuring) 来简化代码(特别是我们需要调用 `commit` 很多次的时候):
+实践中,我们会经常用到 ES2015 的 [参数解构](https://github.com/lukehoban/es6features#destructuring) 来简化代码(特别是我们需要调用 `commit` 很多次的时候):
 
 ``` js
 actions: {