🐛 修复i18n的 Bug

This commit is contained in:
7836246
2024-03-02 20:37:51 +08:00
parent eb796b3833
commit 2e4edbbf0f
7 changed files with 16 additions and 8 deletions
+4 -1
View File
@@ -1,3 +1,6 @@
<script setup lang="ts">
const localePath = useLocalePath()
</script>
<template>
<footer class="text-gray-800 h-[10vh] bg-[#F1F3F4] dark:text-white dark:bg-[#5b77af]">
<div class="max-w-4xl mx-auto py-4 px-4 flex justify-between items-center">
@@ -5,7 +8,7 @@
© 2024 Whois查询. All rights reserved.
</div>
<div class="flex items-center space-x-4">
<NuxtLink to="/api.html" class="hover:underline">API文档</NuxtLink>
<NuxtLink :to="localePath('/api.html')" class="hover:underline">API文档</NuxtLink>
<NuxtLink to="https://github.com/7836246/Nuxt-Whois" class="hover:underline">
<Icon name="ant-design:github-outlined" class="h-6 w-6" />
</NuxtLink>