Skip to content

Commit ffc005c

Browse files
pimliepi0
authored andcommitted
fix(vue-app): pass vm also as arg to support arrow fns (nuxt#6473)
1 parent 686720f commit ffc005c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vue-app/template/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export function applyAsyncData (Component, asyncData) {
3535
Component.options._originDataFn = ComponentData
3636

3737
Component.options.data = function () {
38-
const data = ComponentData.call(this)
38+
const data = ComponentData.call(this, this)
3939
if (this.$ssrContext) {
4040
asyncData = this.$ssrContext.asyncData[Component.cid]
4141
}

0 commit comments

Comments
 (0)