mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
parent
a759196865
commit
3142ce15d8
@ -488,14 +488,14 @@ function showNextPage(to) {
|
|||||||
// Will not update the instance data, so we have to update $data ourselves
|
// Will not update the instance data, so we have to update $data ourselves
|
||||||
function fixPrepatch(to, ___) {
|
function fixPrepatch(to, ___) {
|
||||||
if (this._pathChanged === false && this._queryChanged === false) return
|
if (this._pathChanged === false && this._queryChanged === false) return
|
||||||
|
|
||||||
|
const matches = []
|
||||||
|
const instances = getMatchedComponentsInstances(to, matches)
|
||||||
|
const Components = getMatchedComponents(to, matches)
|
||||||
|
|
||||||
Vue.nextTick(() => {
|
Vue.nextTick(() => {
|
||||||
const matches = []
|
|
||||||
const instances = getMatchedComponentsInstances(to, matches)
|
|
||||||
const Components = getMatchedComponents(to, matches)
|
|
||||||
|
|
||||||
instances.forEach((instance, i) => {
|
instances.forEach((instance, i) => {
|
||||||
if (!instance) return
|
if (!instance || instance._isDestroyed) return
|
||||||
// if (
|
// if (
|
||||||
// !this._queryChanged &&
|
// !this._queryChanged &&
|
||||||
// to.matched[matches[i]].path.indexOf(':') === -1 &&
|
// to.matched[matches[i]].path.indexOf(':') === -1 &&
|
||||||
|
Loading…
Reference in New Issue
Block a user