]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
docs(zh): fix typo (#1805)
author卤蛋 <1690439769@qq.com>
Wed, 19 Apr 2023 15:13:12 +0000 (23:13 +0800)
committerGitHub <noreply@github.com>
Wed, 19 Apr 2023 15:13:12 +0000 (17:13 +0200)
packages/docs/zh/guide/advanced/navigation-failures.md

index 1324386645ef4c11c50545426990d9472e321ace..6257807504fb2c67ab74286fb349363d6ca96ccc 100644 (file)
@@ -77,7 +77,7 @@ if (isNavigationFailure(failure, NavigationFailureType.aborted)) {
 ```js
 // 正在尝试访问 admin 页面
 router.push('/admin').then(failure => {
-  if (isNavigationFailure(failure, NavigationFailureType.redirected)) {
+  if (isNavigationFailure(failure, NavigationFailureType.aborted)) {
     failure.to.path // '/admin'
     failure.from.path // '/'
   }