fix: 导航栏语言

This commit is contained in:
AaronHux 2023-04-30 00:34:13 -05:00 committed by GitHub
parent 304a71349d
commit f79148ee5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -20,14 +20,14 @@ const navs = useNav()
> >
<NuxtLink v-for="(item, index) in nav.child" :key="index" :href="item.href" class="mx-2 my-1 max-w-250px overflow-hidden rounded py-2 hover:bg-light-50/5" active-class="bg-light-50/5"> <NuxtLink v-for="(item, index) in nav.child" :key="index" :href="item.href" class="mx-2 my-1 max-w-250px overflow-hidden rounded py-2 hover:bg-light-50/5" active-class="bg-light-50/5">
<AListItem <AListItem
:title="item.title" :title="$t(item.title)"
:subtitle="item.subtitle" :subtitle="$(item.subtitle)"
:icon="item.icon" :icon="item.icon"
/> />
</NuxtLink> </NuxtLink>
</AList> </AList>
</AMenu> </AMenu>
<span>{{ nav.title }}</span> <span>{{ $t(nav.title) }}</span>
</ABtn> </ABtn>
</NuxtLink> </NuxtLink>
</nav> </nav>