Skip to content

Commit 9200ba2

Browse files
buckle2000yyx990803
authored andcommitted
docs(zh-cn): pdate api.md (#979)
* Update api.md 详细介绍 payload of context * Update api.md
1 parent 4c1841e commit 9200ba2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/zh-cn/api.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ const store = new Vuex.Store({ ...options })
3030

3131
- 类型: `{ [type: string]: Function }`
3232

33-
在 store 上注册 action。处理函数接受一个 `context` 对象,包含以下属性:
33+
在 store 上注册 action。处理函数总是接受 `context` 作为第一个参数,`payload` 作为第二个参数(可选)。
34+
35+
`context` 对象包含以下属性:
3436

3537
``` js
3638
{

0 commit comments

Comments
 (0)