From c1f7242cd3a1076265db78fb057aeddc16cbcdc1 Mon Sep 17 00:00:00 2001 From: Remi PLANEL <rplanel@pasteur.fr> Date: Fri, 8 Dec 2023 14:42:55 +0100 Subject: [PATCH] fix bug toc not displayed --- components/LayoutWrapper.vue | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/components/LayoutWrapper.vue b/components/LayoutWrapper.vue index 05c946b0..aeb6474f 100644 --- a/components/LayoutWrapper.vue +++ b/components/LayoutWrapper.vue @@ -23,7 +23,6 @@ function onScroll() { } else { density.value = "prominent" } } - </script> <template> @@ -33,10 +32,7 @@ function onScroll() { <v-row justify="center"> <v-col cols="auto"> <v-card flat color="transparent" :max-width="fluid ? undefined : 1280"> - <slot /> - <!-- </v-card-text> - </v-card> --> <EditGitlab v-if="edit" /> <NavPrevNext v-if="edit" /> </v-card> @@ -45,11 +41,11 @@ function onScroll() { </v-container> <!-- <Footer></Footer> --> </v-main> - <NavNavbar v-model:drawer="drawer" :density="density" :drawer-enabled="navDrawer"/> + <NavNavbar v-model:drawer="drawer" :density="density" :drawer-enabled="navDrawer" /> <slot v-if="navDrawer" name="drawer" :drawer="drawer"> <NavDrawer :drawer="drawer" /> </slot> - <NavTableOfContent v-if="toc?.body?.toc?.links" :links="page.body.toc.links" /> + <NavTableOfContent :links="page.body.toc.links ?? []" /> <nav-back-to-top /> </VApp> </template> -- GitLab