diff --git a/app/components/Carousel.tsx b/app/components/Carousel.tsx index 2a6d040..ee00eb0 100755 --- a/app/components/Carousel.tsx +++ b/app/components/Carousel.tsx @@ -25,7 +25,6 @@ export function CarouselDemo() { const [current, setCurrent] = React.useState(0); const [count, setCount] = React.useState(0); const totalSlides = imageUrls.length; - React.useEffect(() => { if (!api) return; @@ -54,18 +53,18 @@ export function CarouselDemo() { {Array.from({ length: totalSlides }).map((_, index) => (
- {/* 移除了 aspect-square */} -
+
-
- + > +
+
+
))} diff --git a/app/components/news/body/FireNews/fhyw.tsx b/app/components/news/body/FireNews/fhyw.tsx index 9239ae6..7244e31 100644 --- a/app/components/news/body/FireNews/fhyw.tsx +++ b/app/components/news/body/FireNews/fhyw.tsx @@ -4,8 +4,8 @@ import {FireNewsList} from "./FireNewsList"; export function FhywPage() { return(
- {/* 轮播背景图 */} -
+ {/* 轮播背景图 - 确保有明确尺寸 */} +