fix(vue-app): use app.context.route to match components in server

This commit is contained in:
Thomas Beduneau 2021-03-22 11:24:34 +01:00 committed by GitHub
parent 6f1c658c90
commit e8ea37673f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -156,7 +156,7 @@ export default async (ssrContext) => {
<% if (debug) { %>const s = Date.now()<% } %>
// Components are already resolved by setContext -> getRouteData (app/utils.js)
const Components = getMatchedComponents(router.match(ssrContext.url))
const Components = getMatchedComponents(app.context.route)
<% if (store) { %>
/*