From 071ca874a9d06a0916a85b61a18d9e400c915d15 Mon Sep 17 00:00:00 2001 From: Tuzki <1720599558@qq.com> Date: Wed, 12 Feb 2025 09:25:10 +0800 Subject: [PATCH] =?UTF-8?q?refactor(v-header):=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E9=A6=96=E9=A1=B5=E6=A1=88=E4=BE=8B=E5=B1=95=E7=A4=BA=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在获取推荐列表后,限制展示的案例数量为前四个 - 调整案例列表项的宽度为24%,以适应页面布局 --- src/views/components/v-header/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/components/v-header/index.vue b/src/views/components/v-header/index.vue index 3f8aaae..fcb9790 100644 --- a/src/views/components/v-header/index.vue +++ b/src/views/components/v-header/index.vue @@ -139,7 +139,7 @@ async infoPages() { this.queryParams.type = 5 let res = await Api.getColumnInfoList(this.queryParams) - this.case_list = res.data.list.filter(item => item.recommend == 1) + this.case_list = res.data.list.filter(item => item.recommend == 1).slice(0,4) }, hoverItem(val) { this.activeIndex = val @@ -347,7 +347,7 @@ scrollbar-width: none; .list-item-i { - width: 300px; + width: 24%; height: fit-content; height: 250px;