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

View File

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