Skip to content

Commit

Permalink
fix(vue-app): Fix route meta to handle order
Browse files Browse the repository at this point in the history
  • Loading branch information
Atinux committed Dec 9, 2018
1 parent 25dea5f commit 45be638
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vue-app/template/utils.js
Expand Up @@ -112,7 +112,7 @@ export async function getRouteData(route) {
return {
...route,
meta: getMatchedComponents(route).map((Component, index) => {
return { ...Component.options.meta, ...(index ? {} : route.meta) }
return { ...Component.options.meta, ...(route.matched[index] || {}).meta }
})
}
}
Expand Down

0 comments on commit 45be638

Please sign in to comment.