diff --git a/packages/client/src/pages/timeline.vue b/packages/client/src/pages/timeline.vue index 7a1012fe0..f06605aa2 100644 --- a/packages/client/src/pages/timeline.vue +++ b/packages/client/src/pages/timeline.vue @@ -276,6 +276,7 @@ let swiperRef = null; function setSwiperRef(swiper) { swiperRef = swiper; + syncSlide(timelines.indexOf(src)); } function onSlideChange() { @@ -286,7 +287,6 @@ function syncSlide(index) { swiperRef.slideTo(index); } -syncSlide(timelines.indexOf(src));