fix: 多语言翻译问题

This commit is contained in:
sophie committed 2026-04-04 14:49:11 +08:00
1 parent c380248502
commit 57ee1e522c
5 files changed
+515 -80

No files matched your search

+4 -2
View File
@@ -791,6 +791,7 @@ onMounted(async () => {
<div class="w-full max-w-6xl grid grid-cols-1 lg:grid-cols-2 gap-12 items-center p-4">
<!-- Hero Section -->
<div class="hidden lg:block space-y-8 animate-slide-up">
<!--
<div class="inline-flex items-center gap-2 px-3 py-1 rounded-full bg-brand-50 text-brand-600 text-sm font-medium border border-brand-100">
<span class="relative flex h-2 w-2">
<span class="animate-ping absolute inline-flex h-full w-full rounded-full bg-brand-400 opacity-75"></span>
@@ -798,6 +799,7 @@ onMounted(async () => {
</span>
{{ $t('title') }}
</div>
-->
<h1 class="text-5xl font-bold text-slate-900 leading-tight">
{{ $t('landing.hero.prefix') }} <br/>
<span class="text-transparent bg-clip-text bg-gradient-to-r from-brand-600 to-purple-600">{{ $t('landing.hero.highlight') }}</span>
@@ -825,7 +827,7 @@ onMounted(async () => {
</div>
</div>
<div class="grid grid-cols-2 gap-4">
<div v-if="isLoggedIn" class="grid grid-cols-2 gap-4">
<div v-for="agent in publicAgents.slice(0, 4)" :key="agent.id"
class="bg-white dark:bg-slate-900 p-4 rounded-xl border border-slate-100 dark:border-slate-700 shadow-sm flex items-center gap-3">
<div class="w-10 h-10 bg-brand-50 rounded-lg flex items-center justify-center text-brand-600 shrink-0">
@@ -892,7 +894,7 @@ onMounted(async () => {
</div>
<!-- Public Agents Showcase Mobile -->
<div v-if="publicAgents.length > 0" class="mt-8 pt-6 border-t border-slate-100 lg:hidden">
<div v-if="isLoggedIn && publicAgents.length > 0" class="mt-8 pt-6 border-t border-slate-100 lg:hidden">
<div class="grid grid-cols-4 gap-3">
<div v-for="agent in publicAgents.slice(0, 4)" :key="agent.id"
class="flex flex-col items-center">