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 6e154c1 commit f5a42d3Copy full SHA for f5a42d3
docs/zh/api/README.md
@@ -170,7 +170,7 @@ const store = new Vuex.Store({ ...options })
170
171
- `watch(fn: Function, callback: Function, options?: Object): Function`
172
173
- 响应式地侦听 `fn` 的返回值,当值改变时调用回调函数。`fn` 接收 store 的 state 作为第一个参数,其 getter 作为第二个参数。最后接收一个可选的对象参数表示 Vue 的 `vm.$watch` 方法的参数。
+ 响应式地侦听 `fn` 的返回值,当值改变时调用回调函数。`fn` 接收 store 的 state 作为第一个参数,其 getter 作为第二个参数。最后接收一个可选的对象参数表示 Vue 的 [`vm.$watch`](https://cn.vuejs.org/v2/api/#watch) 方法的参数。
174
175
要停止侦听,调用此方法返回的函数即可停止侦听。
176
0 commit comments