Skip to content

Commit

Permalink
fix: back button not showing
Browse files Browse the repository at this point in the history
  • Loading branch information
zernonia committed Jun 16, 2023
1 parent 4608cc1 commit df1f8b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/SideMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ watch(name, () => {
isSideMenuOpen.value = false
})
const isBackButtonShowing = computed(() => {
const isBackButtonShowing = computedWithControl(path, () => {
if (process.server)
return false
return window.history.length >= 2 && path.value !== '/'
Expand Down Expand Up @@ -82,7 +82,7 @@ const accounts = computed(() => [{
:class="{ 'opacity-100': isBackButtonShowing }"
class="justify-center items-center opacity-0 transition-opacity"
>
<NuxtLink class="p-2 w-10 h-10 text-gray-500 hover:text-white transition" @click="isBackButtonShowing && router.back()">
<NuxtLink class="p-2 w-10 h-10 text-gray-500 hover:text-white transition cursor-pointer" @click="isBackButtonShowing && router.back()">
<UIcon name="i-lucide-arrow-left" />
</NuxtLink>
</UTooltip>
Expand Down

0 comments on commit df1f8b1

Please sign in to comment.