Skip to content

Commit de4e138

Browse files
qiansen1386ktsn
authored andcommitted
Update zh-cn translation of Plugins.md (#739)
1 parent 8cba988 commit de4e138

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/zh-cn/plugins.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,9 @@ const store = new Vuex.Store({
103103
const logger = createLogger({
104104
collapsed: false, // 自动展开记录的 mutation
105105
filter (mutation, stateBefore, stateAfter) {
106-
// returns true if a mutation should be logged
107-
// `mutation` is a { type, payload }
108-
return mutation.type !== "aBlacklistedMutation"
106+
   // mutation 需要被记录,就让它返回 true 即可
107+
   // 顺便,`mutation` 是个 { type, payload } 对象
108+
   return mutation.type !== "aBlacklistedMutation"
109109
},
110110
transformer (state) {
111111
// 在开始记录之前转换状态

0 commit comments

Comments
 (0)