From 1330db17afa7b0dacbb352a37c07f832bded61e2 Mon Sep 17 00:00:00 2001 From: Maxime Moraine Date: Thu, 9 Apr 2020 10:20:08 +0200 Subject: [PATCH] correction de l'initialisation du menu --- docs/.vuepress/theme/components/NavDrawer.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/.vuepress/theme/components/NavDrawer.vue b/docs/.vuepress/theme/components/NavDrawer.vue index f7172db..84e3373 100644 --- a/docs/.vuepress/theme/components/NavDrawer.vue +++ b/docs/.vuepress/theme/components/NavDrawer.vue @@ -85,7 +85,7 @@ export default { } if (item.children[i].children) { for (var j = 0; j < item.children[i].children.length; j++) { - if (item.children[i].path) { + if (item.children[i].children[j].path) { if (item.children[i].children[j].path == this.$route.path) { return true } @@ -94,6 +94,7 @@ export default { } } } + console.log(item.title) return false } }