From 44a1f39b825d464d7b4c5d6293ba13c148b7aff8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=98=B1=E8=BE=BE?= Date: Mon, 26 May 2025 17:58:17 +0800 Subject: [PATCH] =?UTF-8?q?refactor(Home):=20=E4=BC=98=E5=8C=96=20MineTask?= =?UTF-8?q?=20=E7=BB=84=E4=BB=B6=E4=B8=AD=E7=9A=84=E6=BB=91=E5=8A=A8?= =?UTF-8?q?=E5=88=87=E6=8D=A2=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除了不必要的 console.log 语句 - 优化了 slideChange 函数,提高了代码可读性和性能 --- src/views/Home/components/MineTask/Index.vue | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/views/Home/components/MineTask/Index.vue b/src/views/Home/components/MineTask/Index.vue index 50804c1..585e906 100644 --- a/src/views/Home/components/MineTask/Index.vue +++ b/src/views/Home/components/MineTask/Index.vue @@ -25,9 +25,7 @@ watch( } ); function slideChange() { - console.log(1); setTimeout(() => { - console.log(swiper.value.$el.style.height); // 获取高度 swiper.value.$el.style.height = questionComat.value[active.value].$el.scrollHeight + 30 + 'px'; swiper.value.resize();