Skip to content

Commit

Permalink
docs: fixed links to vm. (#1465)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jinjiang committed Jan 29, 2019
1 parent 48263f8 commit a6973fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/api/README.md
Expand Up @@ -169,7 +169,7 @@ const store = new Vuex.Store({ ...options })
- `watch(fn: Function, callback: Function, options?: Object): Function`
Reactively watch `fn`'s return value, and call the callback when the value changes. `fn` receives the store's state as the first argument, and getters as the second argument. Accepts an optional options object that takes the same options as [Vue's `vm.$watch` method](https://vuejs.org/v2/api/#watch).
Reactively watch `fn`'s return value, and call the callback when the value changes. `fn` receives the store's state as the first argument, and getters as the second argument. Accepts an optional options object that takes the same options as [Vue's `vm.$watch` method](https://vuejs.org/v2/api/#vm-watch).
To stop watching, call the returned unwatch function.
Expand Down
2 changes: 1 addition & 1 deletion docs/zh/api/README.md
Expand Up @@ -170,7 +170,7 @@ const store = new Vuex.Store({ ...options })
- `watch(fn: Function, callback: Function, options?: Object): Function`
 响应式地侦听 `fn` 的返回值,当值改变时调用回调函数。`fn` 接收 store 的 state 作为第一个参数,其 getter 作为第二个参数。最后接收一个可选的对象参数表示 Vue 的 [`vm.$watch`](https://cn.vuejs.org/v2/api/#watch) 方法的参数。
 响应式地侦听 `fn` 的返回值,当值改变时调用回调函数。`fn` 接收 store 的 state 作为第一个参数,其 getter 作为第二个参数。最后接收一个可选的对象参数表示 Vue 的 [`vm.$watch`](https://cn.vuejs.org/v2/api/#vm-watch) 方法的参数。
 要停止侦听,调用此方法返回的函数即可停止侦听。
Expand Down

0 comments on commit a6973fa

Please sign in to comment.