From: Joey Date: Wed, 10 Feb 2021 13:44:43 +0000 (+0800) Subject: docs: fix navigation-failures type count (#767) X-Git-Tag: v4.0.4~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=92e131ea53fea32ab4ca91632c08cf36e8cd88de;p=thirdparty%2Fvuejs%2Frouter.git docs: fix navigation-failures type count (#767) Co-authored-by: xiaaa123 <3288432965@qq.com> --- diff --git a/docs/guide/advanced/navigation-failures.md b/docs/guide/advanced/navigation-failures.md index e9247c33..54f34b61 100644 --- a/docs/guide/advanced/navigation-failures.md +++ b/docs/guide/advanced/navigation-failures.md @@ -59,7 +59,7 @@ If you omit the second parameter: `isNavigationFailure(failure)`, it will only c ## Differentiating Navigation Failures -As we said at the beginning, there are different situations aborting a navigation, all of them resulting in different _Navigation Failures_. They can be differentiated using the `isNavigationFailure` and `NavigationFailureType`. There are four different types: +As we said at the beginning, there are different situations aborting a navigation, all of them resulting in different _Navigation Failures_. They can be differentiated using the `isNavigationFailure` and `NavigationFailureType`. There are three different types: - `aborted`: `false` was returned inside of a navigation guard to the navigation. - `cancelled`: A new navigation took place before the current navigation could finish. e.g. `router.push` was called while waiting inside of a navigation guard.