mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +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.data = function () {
|
||||
const data = ComponentData.call(this)
|
||||
const data = ComponentData.call(this, this)
|
||||
if (this.$ssrContext) {
|
||||
asyncData = this.$ssrContext.asyncData[Component.cid]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user