Skip to content

Commit aeb46a3

Browse files
docs: update chinese api document (vuejs#957)
1 parent 01267aa commit aeb46a3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/zh/api/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ _参数_
520520
#### 示例
521521

522522
```js
523-
router.beforeEach(to => {
523+
router.beforeResolve(to => {
524524
if (to.meta.requiresAuth && !isAuthenticated) return false
525525
})
526526
```
@@ -746,12 +746,12 @@ routes: RouteRecordRaw[]
746746

747747
### scrollBehavior
748748

749-
在页面之间导航时控制滚动的函数。可以返回一个 Promise 来延迟滚动。
749+
在页面之间导航时控制滚动的函数。可以返回一个 Promise 来延迟滚动。有关更多详细信息,请参见[滚动行为](../guide/advanced/scroll-behavior.md)。
750750

751751
**函数签名:**
752752

753753
```typescript
754-
scrollBehavior?: ScrollBehavior
754+
scrollBehavior?: RouterScrollBehavior
755755
```
756756

757757
#### 示例

0 commit comments

Comments
 (0)