mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 16:12:12 +00:00
Fix hot-reload on data
This commit is contained in:
parent
0a3577b4c0
commit
0e1f0af3b9
@ -216,6 +216,7 @@ function hotReloadAPI (_app) {
|
||||
})
|
||||
promises.push(p)
|
||||
} else if (Component._cData) {
|
||||
Component._data = Component.options.data
|
||||
Component.options.data = Component._cData
|
||||
Component._Ctor.options.data = Component.options.data
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user