From e2ab1b48964ad31b90474c2761dc94693743c52d Mon Sep 17 00:00:00 2001 From: Clark Du Date: Mon, 3 Dec 2018 10:51:17 +0000 Subject: [PATCH] fix(vue-app): router.meta is null on extendRoutes(#4478) fixes #4154 --- packages/vue-app/template/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vue-app/template/utils.js b/packages/vue-app/template/utils.js index faab985b4e..85bc7ed3e9 100644 --- a/packages/vue-app/template/utils.js +++ b/packages/vue-app/template/utils.js @@ -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 || {} }) } }