mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
fix(vue-app): Fix route meta to handle order
This commit is contained in:
parent
25dea5f52a
commit
45be638479
@ -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 }
|
||||
})
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user