Fix: 修正面包屑导航的跳转逻辑

This commit is contained in:
2025-08-16 17:16:31 +08:00
parent c3964b8e35
commit 631146eeb8
2 changed files with 2 additions and 5 deletions

View File

@ -3,9 +3,9 @@
<div v-if="production">
<!-- 面包屑导航 -->
<el-breadcrumb class="breadcrumb" separator="/">
<el-breadcrumb-item class="text-sm opacity-50" :to="{ path: '/' }">{{ $t('navigation.home')
<el-breadcrumb-item class="text-sm opacity-50" :to="{ path: $localePath('/') }">{{ $t('navigation.home')
}}</el-breadcrumb-item>
<el-breadcrumb-item class="text-sm opacity-50" :to="{ path: '/productions' }">{{ $t('productions')
<el-breadcrumb-item class="text-sm opacity-50" :to="{ path: $localePath('/productions') }">{{ $t('productions')
}}</el-breadcrumb-item>
<el-breadcrumb-item class="text-sm opactiy-50">{{ production.title }}</el-breadcrumb-item>
</el-breadcrumb>
@ -109,8 +109,6 @@ onMounted(async () => {
production_image: item.production_image,
documentId: item.documentId,
}
console.log('Fetched production:', production.value)
}
} catch (error) {
console.error('Failed to fetch production:', error)