fix: use home path

This commit is contained in:
Tim
2025-08-14 13:45:29 +08:00
parent cb49dc9b73
commit 2efe4e733a

View File

@@ -8,7 +8,7 @@
</button>
<span v-if="isMobile && unreadCount > 0" class="menu-unread-dot"></span>
</div>
<NuxtLink class="logo-container" :to="`/`">
<NuxtLink class="logo-container" :to="homePath">
<img
alt="OpenIsle"
src="https://openisle-1307107697.cos.ap-guangzhou.myqcloud.com/assert/image.png"
@@ -56,6 +56,10 @@ import SearchDropdown from '~/components/SearchDropdown.vue'
import { authState, clearToken, loadCurrentUser } from '~/utils/auth'
import { fetchUnreadCount, notificationState } from '~/utils/notification'
import { useIsMobile } from '~/utils/screen'
import { withBase } from 'ufo'
const homePath = computed(() => withBase('/'))
const props = defineProps({
showMenuBtn: {
type: Boolean,