🐛 修复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
+2 -1
View File
@@ -2,6 +2,7 @@
definePageMeta({
layout: 'empty',
})
const localePath = useLocalePath()
</script>
<template>
@@ -9,7 +10,7 @@ definePageMeta({
<div class="overflow-hidden shadow-md rounded-lg">
<div class="px-6 py-4 bg-red-500 text-white font-bold uppercase">
<div class="flex items-center justify-between">
<NuxtLink to="/" class="hover:text-white">
<NuxtLink :to="localePath('/')" class="hover:text-white">
<Icon name="ic:outline-home" class="h-6 w-6" /> <!-- 调整图标大小 -->
</NuxtLink>
<span>Whois关键信息提取API</span>