Skip to content

Commit

Permalink
docs(zh): fix typo (#1612)
Browse files Browse the repository at this point in the history
  • Loading branch information
jungor authored and ktsn committed Sep 4, 2019
1 parent 2257036 commit a5dd20c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/zh/guide/modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ const store = new Vuex.Store({

#### 在带命名空间的模块内访问全局内容(Global Assets)

如果你希望使用全局 state 和 getter,`rootState``rootGetter` 会作为第三和第四参数传入 getter,也会通过 `context` 对象的属性传入 action。
如果你希望使用全局 state 和 getter,`rootState``rootGetters` 会作为第三和第四参数传入 getter,也会通过 `context` 对象的属性传入 action。

若需要在全局命名空间内分发 action 或提交 mutation,将 `{ root: true }` 作为第三参数传给 `dispatch``commit` 即可。

Expand Down

0 comments on commit a5dd20c

Please sign in to comment.