From 45be6384794fa5239b27ade8966d5d40955d8bb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Sun, 9 Dec 2018 13:07:06 +0100 Subject: [PATCH] fix(vue-app): Fix route meta to handle order --- 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 485ea2f67b..808643886b 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, index) => { - return { ...Component.options.meta, ...(index ? {} : route.meta) } + return { ...Component.options.meta, ...(route.matched[index] || {}).meta } }) } }