Skip to content

Commit 3be15b2

Browse files
committed
fix: 修复导航logo在禁用主页时依旧显示可点击状态
1 parent 97757e3 commit 3be15b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/layouts/components/Logo/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const to = computed(() => settingsStore.settings.home.enable ? settingsStore.set
2626
</script>
2727

2828
<template>
29-
<RouterLink :to="to" class="h-[var(--g-sidebar-logo-height)] w-inherit flex-center gap-2 px-3 text-inherit no-underline" :class="{ 'cursor-pointer': settingsStore.settings.home.enable }" :title="title">
29+
<RouterLink :to class="h-[var(--g-sidebar-logo-height)] w-inherit flex-center gap-2 px-3 text-inherit no-underline" :class="{ 'cursor-default': !settingsStore.settings.home.enable }" :title="title">
3030
<img v-if="showLogo" :src="logo" class="logo h-[30px] w-[30px] object-contain">
3131
<span v-if="showTitle" class="block truncate font-bold">{{ title }}</span>
3232
</RouterLink>

0 commit comments

Comments
 (0)