mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-19 23:21:09 +00:00
fix(vue-app): pass vm also as arg to support arrow fns (#6473)
This commit is contained in:
parent
686720f0fc
commit
ffc005c014
@ -35,7 +35,7 @@ export function applyAsyncData (Component, asyncData) {
|
|||||||
Component.options._originDataFn = ComponentData
|
Component.options._originDataFn = ComponentData
|
||||||
|
|
||||||
Component.options.data = function () {
|
Component.options.data = function () {
|
||||||
const data = ComponentData.call(this)
|
const data = ComponentData.call(this, this)
|
||||||
if (this.$ssrContext) {
|
if (this.$ssrContext) {
|
||||||
asyncData = this.$ssrContext.asyncData[Component.cid]
|
asyncData = this.$ssrContext.asyncData[Component.cid]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user