diff --git a/lib/router/router.js b/lib/router/router.js index 16ba8848d3329..518d1faff7746 100644 --- a/lib/router/router.js +++ b/lib/router/router.js @@ -329,8 +329,8 @@ export default class Router extends EventEmitter { } abortComponentLoad (as) { - this.emit('routeChangeError', new Error('Route Cancelled'), as) if (this.componentLoadCancel) { + this.emit('routeChangeError', new Error('Route Cancelled'), as) this.componentLoadCancel() this.componentLoadCancel = null }