From 1e56d7c8f9634181b3a9ca734cceb5336bbf74ea Mon Sep 17 00:00:00 2001 From: zzp <34701892@qq.com> Date: Fri, 21 Nov 2025 10:31:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=96=87=E7=AB=A0?= =?UTF-8?q?=E6=9D=A5=E6=BA=90=E6=98=BE=E7=A4=BA=E9=BB=98=E8=AE=A4=E5=80=BC?= =?UTF-8?q?=E5=8F=8A=E4=BC=98=E5=8C=96=E6=A0=87=E7=AD=BE=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复文章组件中来源标签未定义时显示默认值"中国证券报"的问题 优化标签显示样式,移除冗余代码并简化模板结构 --- .env.production | 4 +-- src/components/article/indexNewsInfo.vue | 33 +++++++----------------- 2 files changed, 11 insertions(+), 26 deletions(-) diff --git a/.env.production b/.env.production index 8ff2d92..de01dda 100644 --- a/.env.production +++ b/.env.production @@ -3,8 +3,8 @@ ENV = production # 线上环境接口地址 # VITE_API_URL = https://cankao.cs.com.cn/mini -# VITE_API_URL = http://123.60.153.169:8040/apih5 -VITE_API_URL = https://cankao.cs.com.cn/apih5 +VITE_API_URL = http://123.60.153.169:8040/apih5 +# VITE_API_URL = https://cankao.cs.com.cn/apih5 # VITE_API_URL = http://123.60.79.143:8041/apih5 diff --git a/src/components/article/indexNewsInfo.vue b/src/components/article/indexNewsInfo.vue index 7abad5d..b564c8f 100644 --- a/src/components/article/indexNewsInfo.vue +++ b/src/components/article/indexNewsInfo.vue @@ -4,7 +4,7 @@ 来源: - {{ props.data.tag }} + {{ props.data.tag ? props.data.tag : "中国证券报" }}