Fix regression on query changes

This commit is contained in:
Sébastien Chopin 2017-02-06 13:24:59 +01:00
parent c00d468357
commit 61ac979cba

View File

@ -39,7 +39,9 @@ function loadAsyncComponents (to, from, next) {
}
return Component
})
this._hashChanged = (from.path === to.path)
const fromPath = from.fullPath.split('#')[0]
const toPath = to.fullPath.split('#')[0]
this._hashChanged = (fromPath === toPath)
if (!this._hashChanged) {
<%= (loading ? 'this.$loading.start && this.$loading.start()' : '') %>
}