From 81c5070e4d1094bbb6e349455eab1513239e408e Mon Sep 17 00:00:00 2001 From: wx <645899409@qq.com> Date: Wed, 1 Apr 2026 11:01:51 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=B7=BB=E5=8A=A0=E5=88=A4=E6=96=AD=EF=BC=8C?= =?UTF-8?q?=E5=A6=82=E6=9E=9C=E8=BD=AE=E6=92=AD=E5=9B=BE=E4=B8=BA1?= =?UTF-8?q?=E5=BC=A0=E6=97=B6=EF=BC=8C=E4=B8=8D=E6=BB=9A=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/dataBoard/dataBoard.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/dataBoard/dataBoard.vue b/src/views/dataBoard/dataBoard.vue index 18c4a1c..c73f24d 100644 --- a/src/views/dataBoard/dataBoard.vue +++ b/src/views/dataBoard/dataBoard.vue @@ -403,7 +403,7 @@ }, // 初始化 Swiper initSwiper() { - if (this.swiperList.length === 0) return; + if (this.swiperList.length <= 1) return; this.swiperInstance = new Swiper('.swiper-container', { loop: true, grabCursor: true, @@ -421,7 +421,7 @@ }, // Swiper 滑动事件处理 onSwiperSlideChange() { - if (!this.swiperInstance || this.swiperList.length === 0) return + if (!this.swiperInstance || this.swiperList.length <= 1) return; // 获取当前索引 const realIndex = this.swiperInstance.activeIndex; this.currentSwiperIndex = realIndex;