@@ -50,11 +50,11 @@ const prod = useRouteQuery<string, boolean>('prod', 'false', {
5050 transform: stringToBooleanTransformer ,
5151})
5252
53- const currentHref = shallowRef (location .href )
53+ const currentHref = shallowRef (window ?. location ? .href )
5454const route = useRoute ()
5555
5656watch (() => route .fullPath , () => {
57- currentHref .value = location .href
57+ currentHref .value = window ?. location ? .href
5858})
5959
6060const issueLink = computed (() => {
@@ -93,14 +93,16 @@ const issueLink = computed(() => {
9393 />
9494 </UTooltip >
9595 <UTooltip text =" Report an issue on GitHub" >
96- <UButton
97- color =" neutral"
98- variant =" ghost"
99- :to =" issueLink"
100- target =" _blank"
101- icon =" i-pajamas-issue-new"
102- aria-label =" Issue via GitHub"
103- />
96+ <ClientOnly >
97+ <UButton
98+ color =" neutral"
99+ variant =" ghost"
100+ :to =" issueLink"
101+ target =" _blank"
102+ icon =" i-pajamas-issue-new"
103+ aria-label =" Issue via GitHub"
104+ />
105+ </ClientOnly >
104106 </UTooltip >
105107 </div >
106108 <div class =" lg:hidden" >
@@ -131,18 +133,20 @@ const issueLink = computed(() => {
131133 <div class =" flex gap-2" >
132134 <USelectMenu v-model =" vueUseVersion" :items =" vueUseVersionsSorted" class =" w-32" icon =" i-logos-vueuse" :loading =" loadingVersions" />
133135 <USelectMenu v-model =" vueVersion" :items =" vueVersionsSorted" class =" w-32" icon =" i-logos-vue" :loading =" loadingVersions" />
134- <UButton icon =" i-lucide-refresh-ccw" size =" md" color =" primary" variant =" soft" @click =" fetchVersions" />
136+ <UButton icon =" i-lucide-refresh-ccw" size =" md" color =" primary" variant =" soft" @click =" () => fetchVersions() " />
135137 </div >
136- <UButton
137- color =" neutral"
138- variant =" ghost"
139- :to =" issueLink"
140- target =" _blank"
141- icon =" i-pajamas-issue-new"
142- aria-label =" Issue via GitHub"
143- >
144- Report an issue on GitHub
145- </UButton >
138+ <ClientOnly >
139+ <UButton
140+ color =" neutral"
141+ variant =" ghost"
142+ :to =" issueLink"
143+ target =" _blank"
144+ icon =" i-pajamas-issue-new"
145+ aria-label =" Issue via GitHub"
146+ >
147+ Report an issue on GitHub
148+ </UButton >
149+ </ClientOnly >
146150 </section >
147151 </template >
148152 </USlideover >
0 commit comments