mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +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 {
|
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 }
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user