浏览代码

docs: fix typo in `subscribeAction` api (#1727)

Alexander Sokolov 5 年之前
父节点
当前提交
0bbad8c2ee
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      docs/api/README.md

+ 1 - 1
docs/api/README.md

@@ -213,7 +213,7 @@ const store = new Vuex.Store({ ...options })
   By default, new handler is added to the end of the chain, so it will be executed after other handlers that were added before. This can be overriden by adding `prepend: true` to `options`, which will add the handler to the beginning of the chain.
   By default, new handler is added to the end of the chain, so it will be executed after other handlers that were added before. This can be overriden by adding `prepend: true` to `options`, which will add the handler to the beginning of the chain.
 
 
   ``` js
   ``` js
-  store.subscribe(handler, { prepend: true })
+  store.subscribeAction(handler, { prepend: true })
   ```
   ```
 
 
   To stop subscribing, call the returned unsubscribe function.
   To stop subscribing, call the returned unsubscribe function.