From cda80c62d64b2e3ad559968f333641ffc686d9f9 Mon Sep 17 00:00:00 2001 From: zzp <34701892@qq.com> Date: Sat, 30 Aug 2025 21:21:49 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=96=87=E7=AB=A0=E7=BB=84=E4=BB=B6):=20?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=9B=BD=E5=86=85=E6=96=B0=E9=97=BB=E5=A4=84?= =?UTF-8?q?=E7=90=86=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 为文章组件添加 isDomestic 属性,用于控制国内新闻的显示逻辑 调整首页搜索框和国内新闻列表的显示条件及间距 --- src/components/article/indexNewsInfo.vue | 11 +++++++++-- src/pages/detail/indexNewsInfo.vue | 2 +- src/pages/minihome/index.vue | 4 ++-- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/components/article/indexNewsInfo.vue b/src/components/article/indexNewsInfo.vue index e6d404a..39cb75c 100644 --- a/src/components/article/indexNewsInfo.vue +++ b/src/components/article/indexNewsInfo.vue @@ -8,7 +8,7 @@ - + 来源: {{ props.data.tag }} @@ -53,7 +53,10 @@ - + {{ props.data.summary }} @@ -100,6 +103,10 @@ const props = defineProps({ type: Object, default: () => {}, }, + isDomestic: { + type: Boolean, + default: false, + }, }); const tagList1 = ref([ { diff --git a/src/pages/detail/indexNewsInfo.vue b/src/pages/detail/indexNewsInfo.vue index 718190c..39b2299 100644 --- a/src/pages/detail/indexNewsInfo.vue +++ b/src/pages/detail/indexNewsInfo.vue @@ -37,7 +37,7 @@ -
+
diff --git a/src/pages/minihome/index.vue b/src/pages/minihome/index.vue index f9a8581..f397f53 100644 --- a/src/pages/minihome/index.vue +++ b/src/pages/minihome/index.vue @@ -45,7 +45,7 @@ > - + - +