fix(vue-app): fixPrepatch in-out transition fix (#5797) (#5824)

This commit is contained in:
Elevista 2019-05-30 16:04:37 +09:00 committed by Sébastien Chopin
parent a759196865
commit 3142ce15d8

View File

@ -488,14 +488,14 @@ function showNextPage(to) {
// Will not update the instance data, so we have to update $data ourselves
function fixPrepatch(to, ___) {
if (this._pathChanged === false && this._queryChanged === false) return
const matches = []
const instances = getMatchedComponentsInstances(to, matches)
const Components = getMatchedComponents(to, matches)
Vue.nextTick(() => {
const matches = []
const instances = getMatchedComponentsInstances(to, matches)
const Components = getMatchedComponents(to, matches)
instances.forEach((instance, i) => {
if (!instance) return
if (!instance || instance._isDestroyed) return
// if (
// !this._queryChanged &&
// to.matched[matches[i]].path.indexOf(':') === -1 &&