From 173b93c1d2ad6f32c2120eae47aebd209171229c Mon Sep 17 00:00:00 2001 From: Developer Date: Mon, 16 Mar 2026 14:25:32 +0800 Subject: [PATCH] 1 --- hooks/useVideoDetail.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooks/useVideoDetail.ts b/hooks/useVideoDetail.ts index a943cdb..36ec4ec 100644 --- a/hooks/useVideoDetail.ts +++ b/hooks/useVideoDetail.ts @@ -37,7 +37,7 @@ export function useVideoDetail(bvid: string) { setLoading(true); const detail = await getVideoDetail(bvid); setVideo(detail); - const cid = detail.pages?.[0]?.cid ?? detail.cid; + const cid = detail.pages?.[0]?.cid ?? detail.cid as number; cidRef.current = cid; await fetchPlayData(cid, 120, true); } catch (e: any) {