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 8cba988 commit de4e138Copy full SHA for de4e138
docs/zh-cn/plugins.md
@@ -103,9 +103,9 @@ const store = new Vuex.Store({
103
const logger = createLogger({
104
collapsed: false, // 自动展开记录的 mutation
105
filter (mutation, stateBefore, stateAfter) {
106
- // returns true if a mutation should be logged
107
- // `mutation` is a { type, payload }
108
- return mutation.type !== "aBlacklistedMutation"
+ // 若 mutation 需要被记录,就让它返回 true 即可
+ // 顺便,`mutation` 是个 { type, payload } 对象
+ return mutation.type !== "aBlacklistedMutation"
109
},
110
transformer (state) {
111
// 在开始记录之前转换状态
0 commit comments