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

This commit is contained in:
Sébastien Chopin 2018-12-09 13:07:06 +01:00
parent 25dea5f52a
commit 45be638479

View File

@ -112,7 +112,7 @@ export async function getRouteData(route) {
return { return {
...route, ...route,
meta: getMatchedComponents(route).map((Component, index) => { meta: getMatchedComponents(route).map((Component, index) => {
return { ...Component.options.meta, ...(index ? {} : route.meta) } return { ...Component.options.meta, ...(route.matched[index] || {}).meta }
}) })
} }
} }