|
|
@@ -38,7 +38,7 @@ const VideoSelectModal: React.FC<VideoSelectModalProps> = ({ visible, onClose, o
|
|
|
const { videoCategoryOptions } = useVideoCategoryOptions();
|
|
|
const [category, setCategory] = useState<string>();
|
|
|
const sort = VideoSortType.推荐指数;
|
|
|
- const PAGE_SIZE = 20;
|
|
|
+ const PAGE_SIZE = 40;
|
|
|
const [searchTerm, setSearchTerm] = useState<string>('');
|
|
|
const [currentPage, setCurrentPage] = useState(1);
|
|
|
const [total, setTotal] = useState(0);
|
|
|
@@ -121,7 +121,7 @@ const VideoSelectModal: React.FC<VideoSelectModalProps> = ({ visible, onClose, o
|
|
|
if (entries[0].isIntersecting && hasMoreRef.current && !loadingMoreRef.current && !loadingRef.current) {
|
|
|
getVideoListRef.current?.(currentPageRef.current + 1, true);
|
|
|
}
|
|
|
- }, { rootMargin: '800px' });
|
|
|
+ }, { rootMargin: '2000px' });
|
|
|
observerRef.current.observe(node);
|
|
|
}, []);
|
|
|
|