Skip to content
Permalink
Browse files

fix(vue-app): Fix route meta to handle order

  • Loading branch information...
Atinux committed Dec 9, 2018
1 parent 25dea5f commit 45be6384794fa5239b27ade8966d5d40955d8bb7
Showing with 1 addition and 1 deletion.
  1. +1 −1 packages/vue-app/template/utils.js
@@ -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 }
})
}
}

0 comments on commit 45be638

Please sign in to comment.
You can’t perform that action at this time.