diff --git a/lib/app/client.js b/lib/app/client.js index 027ee0dc3d..21e189e631 100644 --- a/lib/app/client.js +++ b/lib/app/client.js @@ -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()' : '') %> }