This commit is contained in:
Developer
2026-03-16 14:25:32 +08:00
parent 47d2e8479e
commit 173b93c1d2

View File

@@ -37,7 +37,7 @@ export function useVideoDetail(bvid: string) {
setLoading(true); setLoading(true);
const detail = await getVideoDetail(bvid); const detail = await getVideoDetail(bvid);
setVideo(detail); setVideo(detail);
const cid = detail.pages?.[0]?.cid ?? detail.cid; const cid = detail.pages?.[0]?.cid ?? detail.cid as number;
cidRef.current = cid; cidRef.current = cid;
await fetchPlayData(cid, 120, true); await fetchPlayData(cid, 120, true);
} catch (e: any) { } catch (e: any) {