diff --git a/components/swiper/swiper.tsx b/components/swiper/swiper.tsx index c17ed58..8175a54 100644 --- a/components/swiper/swiper.tsx +++ b/components/swiper/swiper.tsx @@ -166,6 +166,9 @@ const InternalSwiper: React.FC = (props: SwiperProps) => { }); }; getSwiperWidth(); + return () => { + clearInterval(intervalId.current); + } }, []); // Seamless switching