Fix: 修正国际化的显示、跳转问题

This commit is contained in:
2025-08-16 15:40:08 +08:00
parent daa91ac56f
commit eaf7d3be38
8 changed files with 94 additions and 37 deletions

View File

@ -1,7 +1,7 @@
<template>
<div class="header-container">
<div class="logo-section">
<NuxtLink to="/" class="logo-link">
<NuxtLink :to="$localePath('/')" class="logo-link">
<el-image class="website-logo" src="/jinshen-logo.png" alt="Jinshen Logo" fit="contain" />
</NuxtLink>
</div>
@ -9,16 +9,16 @@
<!-- 导航菜单 -->
<el-menu default-active="productions" class="header-menu" mode="horizontal" :ellipsis="false" router>
<el-menu-item index="/productions">
<el-menu-item :index="$localePath('/productions')">
<span class="title">{{ $t('productions') }}</span>
</el-menu-item>
<el-menu-item index="/solutions">
<el-menu-item :index="$localePath('/solutions')">
<span class="title">{{ $t('solutions') }}</span>
</el-menu-item>
<el-menu-item index="/support">
<el-menu-item :index="$localePath('/support')">
<span class="title">{{ $t('support') }}</span>
</el-menu-item>
<el-menu-item index="/about">
<el-menu-item :index="$localePath('/about')">
<span class="title">{{ $t('about-us') }}</span>
</el-menu-item>
</el-menu>