Skip to content

Commit 22d99d3

Browse files
authored
fix #42
1 parent b705e3b commit 22d99d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/API.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ RouteContext mixin 提供了一个将 route 组件设置到 context 中的便捷
671671

672672
## `match(location, cb)`
673673

674-
这个函数被用于服务端渲染。它在渲染之前会匹配一组 route 到一个 location,并且在完成市调用 `callback(error, redirectLocation, renderProps)`
674+
这个函数被用于服务端渲染。它在渲染之前会匹配一组 route 到一个 location,并且在完成时调用 `callback(error, redirectLocation, renderProps)`
675675

676676
传给回调函数去 `match` 的三个参数如下:
677677
* `error`:如果报错时会出现一个 Javascript 的 `Error` 对象,否则是 `undefined`

0 commit comments

Comments
 (0)