From d0966f09d6a10cf9f504c9d7f0ae952062097a8e Mon Sep 17 00:00:00 2001 From: senshinya <155552943+senshinya@users.noreply.github.com> Date: Tue, 8 Jul 2025 19:47:44 +0800 Subject: [PATCH] feat: del type param --- src/app/play/page.tsx | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/app/play/page.tsx b/src/app/play/page.tsx index e3e899d..aeaf9b5 100644 --- a/src/app/play/page.tsx +++ b/src/app/play/page.tsx @@ -55,7 +55,6 @@ function PlayPageClient() { }); // 视频基本信息 - const [videoType, setVideoType] = useState(searchParams.get('type') || ''); const [videoDoubanId, setVideoDoubanId] = useState( searchParams.get('douban_id') || '' ); @@ -256,7 +255,6 @@ function PlayPageClient() { setCurrentSource(searchResults[0].source); setCurrentId(searchResults[0].id); setVideoYear(searchResults[0].year); - setVideoType(''); setVideoDoubanId(''); // 清空豆瓣ID // 替换URL参数 const newUrl = new URL(window.location.href); @@ -422,10 +420,6 @@ function PlayPageClient() { : true) && (videoDoubanId && result.douban_id ? result.douban_id.toString() === videoDoubanId - : true) && - (videoType - ? (videoType === 'movie' && result.episodes.length === 1) || - (videoType === 'tv' && result.episodes.length > 1) : true) ); if (exactMatchs.length > 0) {