mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-31 07:40:33 +00:00
fix: keep-alive component data should not be updated (#5188)
This commit is contained in:
parent
3e678793b9
commit
1ea86617ca
@ -491,6 +491,7 @@ function fixPrepatch(to, ___) {
|
|||||||
if (
|
if (
|
||||||
instance.constructor._dataRefresh &&
|
instance.constructor._dataRefresh &&
|
||||||
Components[i] === instance.constructor &&
|
Components[i] === instance.constructor &&
|
||||||
|
instance.$vnode.data.keepAlive !== true &&
|
||||||
typeof instance.constructor.options.data === 'function'
|
typeof instance.constructor.options.data === 'function'
|
||||||
) {
|
) {
|
||||||
const newData = instance.constructor.options.data.call(instance)
|
const newData = instance.constructor.options.data.call(instance)
|
||||||
|
Loading…
Reference in New Issue
Block a user