diff --git a/packages/client/composables/useNav.ts b/packages/client/composables/useNav.ts index 9ecf626909..c3b294f0a0 100644 --- a/packages/client/composables/useNav.ts +++ b/packages/client/composables/useNav.ts @@ -3,7 +3,7 @@ import { computed } from 'vue' import type { RouteLocationNormalizedLoaded, RouteRecordRaw } from 'vue-router' import type { TocItem } from '@slidev/types' import type { SlidevContextNav } from '../modules/context' -import { addToTree, downloadPDF, filterTree, getPath, getTreeWithActiveStatuses, next, nextSlide, openInEditor, prev, prevSlide } from '../logic/nav' +import { addToTree, downloadPDF, filterTree, getPath, getTreeWithActiveStatuses, go, next, nextSlide, openInEditor, prev, prevSlide } from '../logic/nav' import { rawRoutes } from '../routes' export function useNav(route: ComputedRef): SlidevContextNav { @@ -41,6 +41,7 @@ export function useNav(route: ComputedRef {