Skip to content

Commit 6beb1df

Browse files
docs: use beforeResolve (vuejs#941)
1 parent 1544f4e commit 6beb1df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/api/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ _Parameters_
520520
#### Examples
521521

522522
```js
523-
router.beforeEach(to => {
523+
router.beforeResolve(to => {
524524
if (to.meta.requiresAuth && !isAuthenticated) return false
525525
})
526526
```

0 commit comments

Comments
 (0)