]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
docs: fix code block closing (#1418)
authorLeon <Leon0824@users.noreply.github.com>
Fri, 27 May 2022 05:02:16 +0000 (13:02 +0800)
committerGitHub <noreply@github.com>
Fri, 27 May 2022 05:02:16 +0000 (07:02 +0200)
docs/zh/guide/advanced/navigation-guards.md

index 703d30867721031feda0d65542c134b2a3850b3c..8ebc3260c4b367c66b9a3c6ae61bf1c3b036564e 100644 (file)
@@ -45,6 +45,7 @@ router.beforeEach((to, from) => {
       return { name: 'Login' }
     }
   })
+```
 
 如果遇到了意料之外的情况,可能会抛出一个 `Error`。这会取消导航并且调用 [`router.onError()`](../../api/#onerror) 注册过的回调。