Skip to content

Commit 089f732

Browse files
AndyAndy
authored andcommitted
client only
1 parent 4cb4796 commit 089f732

File tree

1 file changed

+24
-22
lines changed

1 file changed

+24
-22
lines changed

layouts/breadcrumb.vue

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,30 @@ const categoryState = useCategoryState()
44

55
<template>
66
<div class="layout">
7-
<nav class="breadcrumb">
8-
<NuxtLink
9-
class="link"
10-
to="/"
11-
>
12-
All
13-
</NuxtLink>
14-
15-
<NuxtLink
16-
class="link"
17-
to="/categories"
18-
>
19-
Categories
20-
</NuxtLink>
21-
22-
<NuxtLink
23-
class="link"
24-
:to="`/categories/${categoryState.slug}`"
25-
>
26-
Category: {{ categoryState.name }}
27-
</NuxtLink>
28-
</nav>
7+
<ClientOnly>
8+
<nav class="breadcrumb">
9+
<NuxtLink
10+
class="link"
11+
to="/"
12+
>
13+
All
14+
</NuxtLink>
15+
16+
<NuxtLink
17+
class="link"
18+
to="/categories"
19+
>
20+
Categories
21+
</NuxtLink>
22+
23+
<NuxtLink
24+
class="link"
25+
:to="`/categories/${categoryState.slug}`"
26+
>
27+
Category: {{ categoryState.name }}
28+
</NuxtLink>
29+
</nav>
30+
</ClientOnly>
2931
<slot />
3032
</div>
3133
</template>

0 commit comments

Comments
 (0)