From: Buddy Date: Fri, 6 Nov 2020 08:08:24 +0000 (+0800) Subject: doc: remove extra brackets (#575) X-Git-Tag: v4.0.0-rc.3~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c35de60348647baa6decaa7a223a7672f467907;p=thirdparty%2Fvuejs%2Frouter.git doc: remove extra brackets (#575) --- diff --git a/docs/guide/advanced/navigation-failures.md b/docs/guide/advanced/navigation-failures.md index 1244c391..237e8a6c 100644 --- a/docs/guide/advanced/navigation-failures.md +++ b/docs/guide/advanced/navigation-failures.md @@ -46,11 +46,11 @@ import { NavigationFailureType, isNavigationFailure } from 'vue-router' // trying to leave the editing page of an article without saving const failure = await router.push('/articles/2') - if (isNavigationFailure(failure, NavigationFailureType.aborted)) { - // show a small notification to the user - showToast('You have unsaved changes, discard and leave anyway?') - } -}) + +if (isNavigationFailure(failure, NavigationFailureType.aborted)) { + // show a small notification to the user + showToast('You have unsaved changes, discard and leave anyway?') +} ``` ::: tip