From 42730b0479782f0d7ad225a4340965323f428ad0 Mon Sep 17 00:00:00 2001
From: Li1304553726 <1304553726@qq.com>
Date: Wed, 19 Nov 2025 16:03:12 +0800
Subject: [PATCH] 1
---
app/components/Carousel.tsx | 19 ++++++++++---------
app/components/news/body/FireNews/fhyw.tsx | 7 +++----
2 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/app/components/Carousel.tsx b/app/components/Carousel.tsx
index ee00eb0..2a6d040 100755
--- a/app/components/Carousel.tsx
+++ b/app/components/Carousel.tsx
@@ -25,6 +25,7 @@ export function CarouselDemo() {
const [current, setCurrent] = React.useState(0);
const [count, setCount] = React.useState(0);
const totalSlides = imageUrls.length;
+
React.useEffect(() => {
if (!api) return;
@@ -53,18 +54,18 @@ export function CarouselDemo() {
{Array.from({ length: totalSlides }).map((_, index) => (