Skip to content

Commit 76ef64e

Browse files
authored
Merge pull request #219 from green-mike/patch-1
Update plugins.md
2 parents 2e7d071 + d1677a8 commit 76ef64e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vuex/plugins.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ type: vuex
44
order: 10
55
---
66

7-
Vuex 的 store 接收 `plugins` 选项,这个选项暴露出每个 mutation 的钩子。一个 Vuex 的插件就是一个简单的方法,接收 sotre 作为唯一参数:
7+
Vuex 的 store 接收 `plugins` 选项,这个选项暴露出每个 mutation 的钩子。一个 Vuex 的插件就是一个简单的方法,接收 store 作为唯一参数:
88

99
``` js
1010
const myPlugin = store => {

0 commit comments

Comments
 (0)