chore: footer icon

This commit is contained in:
胡鑫 2023-05-19 19:24:58 +08:00
parent 66732e133a
commit 46f86d4620
3 changed files with 6 additions and 2 deletions

View File

@ -16,8 +16,8 @@ const footer = useFoot()
{{ $t(col.title) }} {{ $t(col.title) }}
</h5> </h5>
<LocaleNuxtLink v-for="(item, i) in col.child" :key="i" class="font-bold" :href="item.link.href"> <LocaleNuxtLink v-for="(item, i) in col.child" :key="i" class="flex gap-2 font-bold" :href="item.link.href">
{{ $t(item.link.name) }} <span :class="item.icon" />{{ $t(item.link.name) }}
</LocaleNuxtLink> </LocaleNuxtLink>
</div> </div>
</div> </div>

View File

@ -58,12 +58,14 @@ export function useFoot() {
title: 'foot.links[2].group', title: 'foot.links[2].group',
child: [ child: [
{ {
icon: 'i-ic-sharp-wechat',
link: { link: {
name: 'foot.links[2].link[0]', name: 'foot.links[2].link[0]',
href: '#', href: '#',
}, },
}, },
{ {
icon: 'i-ri-twitter-fill',
link: { link: {
name: 'foot.links[2].link[1]', name: 'foot.links[2].link[1]',
href: '#', href: '#',

View File

@ -66,6 +66,8 @@ export default defineConfig({
'i-tabler-3d-cube-sphere', 'i-tabler-3d-cube-sphere',
'i-tabler-api-app', 'i-tabler-api-app',
'i-tabler-apple', 'i-tabler-apple',
'i-ic-sharp-wechat',
'i-ri-twitter-fill',
], ],
presets: [ presets: [
presetAnu(), presetAnu(),