From 434a876bf72b7cbd78181c36c6b98216276fb6ca Mon Sep 17 00:00:00 2001 From: truthhun <1272881215@qq.com> Date: Tue, 17 Oct 2023 10:56:22 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=AE=E6=92=AD=E5=9B=BE=E6=87=92=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/pages/index.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/web/pages/index.vue b/web/pages/index.vue index 80f56da..9daae2b 100644 --- a/web/pages/index.vue +++ b/web/pages/index.vue @@ -11,7 +11,7 @@ > @@ -327,7 +327,7 @@ export default { document_count: '-', user_count: '-', }, - carouselIndex: 0, // 跑马灯index,用于跑马灯图片的懒加载 + carouselIndexes: [0], // 跑马灯index,用于跑马灯图片的懒加载 } }, head() { @@ -432,7 +432,11 @@ export default { this.$router.push('/login') }, changeCarousel(index){ - this.carouselIndex = index + let carouselIndexes = this.carouselIndexes + if (carouselIndexes.indexOf(index) === -1) { + carouselIndexes.push(index) + } + this.carouselIndexes = carouselIndexes } }, }