mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-04 19:37:18 +00:00
Fix issue with parent routes being rerendered when navigating to/from child route
This commit is contained in:
parent
f654c9c94c
commit
80f2dabd70
@ -364,14 +364,6 @@ function fixPrepatch (to, ___) {
|
|||||||
|
|
||||||
_lastComponentsFiles = instances.map((instance, i) => {
|
_lastComponentsFiles = instances.map((instance, i) => {
|
||||||
if (!instance) return '';
|
if (!instance) return '';
|
||||||
|
|
||||||
if (_lastPaths[i] === instance.constructor._path && typeof instance.constructor.options.data === 'function') {
|
|
||||||
const newData = instance.constructor.options.data.call(instance)
|
|
||||||
for (let key in newData) {
|
|
||||||
Vue.set(instance.$data, key, newData[key])
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return instance.constructor.options.__file
|
return instance.constructor.options.__file
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user