Skip to content

Commit

Permalink
react to toc changes
Browse files Browse the repository at this point in the history
  • Loading branch information
SiriusAshling committed May 19, 2024
1 parent 7bb41a0 commit 77c922d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pages/docs/[...slug].vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { mdiTableOfContents } from '@mdi/js'
const page = useCurrentContent()
const toc = page.value?.body?.toc
const showNavigation = ref(true)
</script>
Expand All @@ -14,7 +13,7 @@
</template>
</v-app-bar>
<v-navigation-drawer v-model="showNavigation" permanent :width="280">
<TableOfContents :toc="toc" />
<TableOfContents :toc="page?.body?.toc" />
</v-navigation-drawer>
<v-main>
<v-container>
Expand Down

0 comments on commit 77c922d

Please sign in to comment.