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 8fae0bc commit 6af9f8dCopy full SHA for 6af9f8d
docs/zh-cn/api.md
@@ -142,7 +142,7 @@ const store = new Vuex.Store({ ...options })
142
143
- **`watch(getter: Function, cb: Function, options?: Object)`**
144
145
- 响应式地监测一个 getter 方法的返回值,当值改变时调用回调函数。getter 接收 store 的状态作为唯一参数。接收一个可选的对象参数表示 Vue 的 `vm.$watch` 方法的参数。
+ 响应式地监测一个 getter 方法的返回值,当值改变时调用回调函数。Getter 接收 store 的 state 作为第一个参数,其 getter 作为第二个参数。最后接收一个可选的对象参数表示 Vue 的 `vm.$watch` 方法的参数。
146
147
要停止监测,直接调用返回的处理函数。
148
0 commit comments