|
@@ -2,7 +2,7 @@
|
|
|
import { AdItem } from "@/api/customservice";
|
|
|
import { useRouter } from "@/i18n/routing";
|
|
|
import React from "react";
|
|
|
-import { Pagination } from "swiper/modules";
|
|
|
+import { Autoplay, Pagination } from "swiper/modules";
|
|
|
import { Swiper, SwiperSlide } from "swiper/react";
|
|
|
|
|
|
interface AdboxProps {
|
|
@@ -34,7 +34,7 @@ const Adbox: React.FC<AdboxProps> = ({ data }) => {
|
|
|
<Swiper
|
|
|
spaceBetween={10}
|
|
|
autoplay
|
|
|
- modules={[Pagination]}
|
|
|
+ modules={[Pagination, Autoplay]}
|
|
|
pagination={{ clickable: true }}
|
|
|
>
|
|
|
{!!data?.length &&
|