Skip to content

Commit

Permalink
Merge pull request #23 from NJUPT-SAST/dev-love98
Browse files Browse the repository at this point in the history
feat: improve CSS in SlideImages
  • Loading branch information
love98ooo authored Nov 30, 2023
2 parents f8bb307 + ab90f7b commit f423bb5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/SlideImages.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const SlideImages: React.FC = () => {
const [slideImages, setSlideImages] = useState<Array<any>>([]);
useEffect(() => {
getHomeSlideList().then((res) => {
setSlideImages(res.slides.slice(0, 2));
setSlideImages(res.slides.slice(0, 3));
});
}, []);

Expand All @@ -26,7 +26,6 @@ const SlideImages: React.FC = () => {
return (
<div className="slideWarpper">
<Swiper
spaceBetween={50}
slidesPerView="auto"
loop={true}
pagination={{
Expand Down

0 comments on commit f423bb5

Please sign in to comment.