From 082c7b233e7a0a0e6c2267b97955a9abcf41b86c Mon Sep 17 00:00:00 2001 From: Leon Date: Fri, 27 May 2022 13:02:16 +0800 Subject: [PATCH] docs: fix code block closing (#1418) --- docs/zh/guide/advanced/navigation-guards.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/zh/guide/advanced/navigation-guards.md b/docs/zh/guide/advanced/navigation-guards.md index 703d30867..8ebc3260c 100644 --- a/docs/zh/guide/advanced/navigation-guards.md +++ b/docs/zh/guide/advanced/navigation-guards.md @@ -45,6 +45,7 @@ router.beforeEach((to, from) => { return { name: 'Login' } } }) +``` 如果遇到了意料之外的情况,可能会抛出一个 `Error`。这会取消导航并且调用 [`router.onError()`](../../api/#onerror) 注册过的回调。