diff --git a/src/utils/router.ts b/src/utils/router.ts index 6bc9e771f..4c1e4d543 100644 --- a/src/utils/router.ts +++ b/src/utils/router.ts @@ -20,7 +20,7 @@ export function route(router: VueRouter, config: RouteConfig) { if (promise && promise.catch) { promise.catch(err => { /* istanbul ignore if */ - if (err.name !== 'NavigationDuplicated') { + if (err && err.name !== 'NavigationDuplicated') { throw err; } });