Skip to content

Commit 6af9f8d

Browse files
authored
[zh-cn] synced from #687962b to #8fae0bc (vuejs#1057)
* [zh-cn] synced from #687962b to #8fae0bc * Update api.md
1 parent 8fae0bc commit 6af9f8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/zh-cn/api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ const store = new Vuex.Store({ ...options })
142142

143143
- **`watch(getter: Function, cb: Function, options?: Object)`**
144144

145-
响应式地监测一个 getter 方法的返回值,当值改变时调用回调函数。getter 接收 store 的状态作为唯一参数。接收一个可选的对象参数表示 Vue 的 `vm.$watch` 方法的参数。
145+
 响应式地监测一个 getter 方法的返回值,当值改变时调用回调函数。Getter 接收 store 的 state 作为第一个参数,其 getter 作为第二个参数。最后接收一个可选的对象参数表示 Vue 的 `vm.$watch` 方法的参数。
146146

147147
要停止监测,直接调用返回的处理函数。
148148

0 commit comments

Comments
 (0)