fix(vue-app): pass vm also as arg to support arrow fns (#6473)

This commit is contained in:
Pim 2019-09-29 10:06:26 +02:00 committed by Pooya Parsa
parent 686720f0fc
commit ffc005c014

View File

@ -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]
}