fix(vue-app): router.meta is null on extendRoutes(#4478)

fixes #4154
This commit is contained in:
Clark Du 2018-12-03 10:51:17 +00:00 committed by Pooya Parsa
parent 6589670864
commit e2ab1b4896
1 changed files with 1 additions and 1 deletions

View File

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