This commit is contained in:
qiuchenfan 2025-11-19 11:46:30 +08:00
parent 8aba8c10d4
commit a5481854fd
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ export function CarouselDemo() {
const [api, setApi] = React.useState<CarouselApi>();
const [current, setCurrent] = React.useState(0);
const [count, setCount] = React.useState(0);
const totalSlides = imageUrls.length;
React.useEffect(() => {
if (!api) return;