Skip to content

Commit

Permalink
docs: fix code block closing (#1418)
Browse files Browse the repository at this point in the history
  • Loading branch information
Leon0824 committed May 27, 2022
1 parent d8599c3 commit 082c7b2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/zh/guide/advanced/navigation-guards.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ router.beforeEach((to, from) => {
return { name: 'Login' }
}
})
```

如果遇到了意料之外的情况,可能会抛出一个 `Error`。这会取消导航并且调用 [`router.onError()`](../../api/#onerror) 注册过的回调。

Expand Down

0 comments on commit 082c7b2

Please sign in to comment.