We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2ac1ac commit b50f81cCopy full SHA for b50f81c
docs/zh-cn/api.md
@@ -16,7 +16,7 @@ const store = new Vuex.Store({ ...options })
16
17
Vuex store 实例的根 state 对象。[详细介绍](state.md)
18
19
- 如果你传入返回一个对象的函数,其返回的对象会被用做根 state。这在你想要重用 state 对象,尤其是重用 module 来说非常有用。[详细介绍](modules.md#模块重用)
+ 如果你传入返回一个对象的函数,其返回的对象会被用作根 state。这在你想要重用 state 对象,尤其是对于重用 module 来说非常有用。[详细介绍](modules.md#模块重用)
20
21
- **mutations**
22
@@ -58,7 +58,7 @@ const store = new Vuex.Store({ ...options })
58
getters, // 等同于 store.getters
59
```
60
61
- 当定义在一个模块里时会特别一些
+ 当定义在一个模块里时会特别一些:
62
63
64
state, // 如果在模块中定义则为模块的局部状态
0 commit comments