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

@ -13,7 +13,6 @@ const props = defineProps<Props>()
// 将 Markdown 转换成 HTML // 将 Markdown 转换成 HTML
const safeHtml = computed(() => renderMarkdown(props.content)) const safeHtml = computed(() => renderMarkdown(props.content))
console.log('Markdown content:', safeHtml.value)
</script> </script>
<style> <style>

View File

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