diff --git a/packages/vue-app/template/App.js b/packages/vue-app/template/App.js index fddc8115ea..70d680a403 100644 --- a/packages/vue-app/template/App.js +++ b/packages/vue-app/template/App.js @@ -134,7 +134,7 @@ export default { if (this.isPreview) { if (this.$store && this.$store._actions.nuxtServerInit) { <% if (loading) { %>this.$loading.start()<% } %> - await app.$store.dispatch('nuxtServerInit', this.context) + await this.$store.dispatch('nuxtServerInit', this.context) } await this.refresh() <% if (loading) { %>this.$loading.finish()<% } %>