diff --git a/frontend/src/views/ArticleDetail.vue b/frontend/src/views/ArticleDetail.vue index 29cc531..524311f 100644 --- a/frontend/src/views/ArticleDetail.vue +++ b/frontend/src/views/ArticleDetail.vue @@ -167,6 +167,16 @@ const originalBody = computed(() => { // - 隐藏"原文链接"(合成 url,打开无意义) const isShort = computed(() => !!article.value?.is_short_news) +// 中文源头 = 短新闻 OR lang_src 以 zh 开头(中文 RSS 源,原文就是中文) +// 中文源头的文章不显示"译文"板块(原文本就是中文,翻译无意义); +// 后端不做拦截(中翻中虽然浪费配额但不出错),仅前端隐藏。 +const isChineseSource = computed(() => { + if (!article.value) return false + if (isShort.value) return true + const lang = (article.value.lang_src || '').toLowerCase() + return lang.startsWith('zh') +}) + // 短新闻正文:用 body_zh_text(ingest 时已 = body_text),按段落切分 const shortBody = computed(() => { const a = article.value @@ -229,10 +239,10 @@ onMounted(load) {{ article.lang_src.toUpperCase() }} 📰 短讯 {{ article.source_ref }} - + 翻译:{{ article.translation_status }} - + {{ article.translation_engine }} @@ -283,13 +293,13 @@ onMounted(load) {{ showTranslation ? '隐藏译文' : '显示译文' }} - + 重译 跑 LLM 增强 - + 原文链接 ↗ @@ -418,6 +428,15 @@ onMounted(load) 暂无正文 + + + +
+ 暂无正文 + +
@@ -448,7 +467,7 @@ onMounted(load)
- + @@ -456,7 +475,7 @@ onMounted(load) -
+