From 9df7d42b2b1c463cb1e87231bbd79e6886c3b004 Mon Sep 17 00:00:00 2001 From: hdx Date: Wed, 17 Jan 2024 17:26:40 +0800 Subject: [PATCH] =?UTF-8?q?swiper-list:=20=E6=96=B0=E5=A2=9E=20text=20?= =?UTF-8?q?=E5=B1=9E=E6=80=A7=20space=3D"nbsp"=EF=BC=8C=E5=92=8C=20app=20?= =?UTF-8?q?=E7=9A=84=E9=BB=98=E8=AE=A4=E6=95=88=E6=9E=9C=E4=BF=9D=E6=8C=81?= =?UTF-8?q?=E4=B8=80=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/template/swiper-list/swiper-list.uvue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pages/template/swiper-list/swiper-list.uvue b/pages/template/swiper-list/swiper-list.uvue index 8f00df76..9d1c95f6 100644 --- a/pages/template/swiper-list/swiper-list.uvue +++ b/pages/template/swiper-list/swiper-list.uvue @@ -2,7 +2,7 @@ - {{item.title}} @@ -103,7 +103,9 @@ const percentage = Math.abs(current_offset_x) / this.swiperWidth // 通知更新指示线 - this.updateTabIndicator(current_index, move_to_index, percentage) + if (current_index != move_to_index) { + this.updateTabIndicator(current_index, move_to_index, percentage) + } }, /** * Swiper滑动动画结束事件. -- GitLab