From 0c35de60348647baa6decaa7a223a7672f467907 Mon Sep 17 00:00:00 2001 From: Buddy Date: Fri, 6 Nov 2020 16:08:24 +0800 Subject: [PATCH] doc: remove extra brackets (#575) --- docs/guide/advanced/navigation-failures.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 -- 2.47.2