diff --git a/packages/client/src/pages/timeline.vue b/packages/client/src/pages/timeline.vue index 7a1012fe01..f06605aa21 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));