hotfix(vue-app): ReferenceError error passed with routeChanged (#4444)

This commit is contained in:
Dmitry Molotkov 2018-11-28 19:30:40 +03:00 committed by Sébastien Chopin
parent 0f28f9cdb6
commit 6ed3ecacc7

View File

@ -145,7 +145,7 @@ async function loadAsyncComponents(to, from, next) {
// Call next() // Call next()
next() next()
} catch (err) { } catch (err) {
this.error(err) const error = this.error(err)
this.<%= globals.nuxt %>.$emit('routeChanged', to, from, error) this.<%= globals.nuxt %>.$emit('routeChanged', to, from, error)
next(false) next(false)
} }