File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import type { TocItem } from '@slidev/types'
11
11
import TitleRenderer from ' #slidev/title-renderer'
12
12
import { toArray } from ' @antfu/utils'
13
13
import { computed } from ' vue'
14
+ import { useNav } from ' ../composables/useNav'
14
15
15
16
const props = withDefaults (defineProps <{
16
17
level: number
@@ -20,6 +21,8 @@ const props = withDefaults(defineProps<{
20
21
listClass? : string | string []
21
22
}>(), { level: 1 })
22
23
24
+ const { isPresenter } = useNav ()
25
+
23
26
const classes = computed (() => {
24
27
return [
25
28
... toArray (props .listClass || []),
@@ -47,7 +50,7 @@ const styles = computed(() => {
47
50
:key =" item.path" class =" slidev-toc-item"
48
51
:class =" [{ 'slidev-toc-item-active': item.active }, { 'slidev-toc-item-parent-active': item.activeParent }]"
49
52
>
50
- <Link :to =" item.path" >
53
+ <Link :to =" isPresenter ? `/presenter${item.path}` : item.path" >
51
54
<TitleRenderer :no =" item.no" />
52
55
</Link >
53
56
<TocList
You can’t perform that action at this time.
0 commit comments