diff --git a/pages/template/swiper-list/swiper-list.uvue b/pages/template/swiper-list/swiper-list.uvue index b1c1e0ff2b29294fc919cc77cf06907fd86ce965..8dcd53782b040af0007df74850ea355a3a6810c7 100644 --- a/pages/template/swiper-list/swiper-list.uvue +++ b/pages/template/swiper-list/swiper-list.uvue @@ -132,7 +132,7 @@ // 更新指示线 const x = indicator_line_x + indicator_line_w / 2 - this.$indicatorNode?.style?.setProperty('transform', `translateX(${x}px) scaleX(${indicator_line_w})`) + this.$indicatorNode!.style.setProperty('transform', `translateX(${x}px) scaleX(${indicator_line_w})`) // 滚动到水平中心位置 const scroll_x = x - this.$swiperWidth / 2