diff --git a/lib/app/index.js b/lib/app/index.js index 1a2d79fed8..7ba2b65132 100644 --- a/lib/app/index.js +++ b/lib/app/index.js @@ -44,10 +44,10 @@ const defaultTransition = <%= %> async function createApp (ssrContext) { - const router = createRouter() + const router = createRouter(ssrContext) <% if (store) { %> - const store = createStore() + const store = createStore(ssrContext) // Add this.$router into store actions/mutations store.$router = router <% } %>