修复导航logo在禁用主页时依旧显示可点击状态

This commit is contained in:
Hooray
2025-04-24 15:55:43 +08:00
parent 55503bdb66
commit 5dbedd24ae
+1 -1
View File
@@ -26,7 +26,7 @@ const to = computed(() => settingsStore.settings.home.enable ? settingsStore.set
</script>
<template>
<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">
<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">
<img v-if="showLogo" :src="logo" class="logo h-[30px] w-[30px] object-contain">
<span v-if="showTitle" class="block truncate font-bold">{{ title }}</span>
</RouterLink>