From ba26ea2637c0f6ba3404404cb8b48e8ac83669d7 Mon Sep 17 00:00:00 2001 From: shinya Date: Fri, 11 Jul 2025 02:43:24 +0800 Subject: [PATCH] feat: fix year --- src/app/play/page.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/play/page.tsx b/src/app/play/page.tsx index d449220..6b90f24 100644 --- a/src/app/play/page.tsx +++ b/src/app/play/page.tsx @@ -486,7 +486,7 @@ function PlayPageClient() { setNeedPrefer(false); setCurrentSource(preferredSource.source); setCurrentId(preferredSource.id); - setVideoYear(preferredSource.year); + setVideoYear(preferredSource.year || 'unknown'); // 替换URL参数 const newUrl = new URL(window.location.href); @@ -513,7 +513,7 @@ function PlayPageClient() { // 更新状态保存详情 setVideoTitle(detailData.title || videoTitleRef.current); - setVideoYear(detailData.year); + setVideoYear(detailData.year || 'unknown'); setVideoCover(detailData.poster); setDetail(detailData);