变更私人影库的key值方式

This commit is contained in:
mtvpls
2025-12-26 21:14:31 +08:00
parent df78abaf11
commit 3050cd48a9
15 changed files with 120 additions and 84 deletions
+3 -3
View File
@@ -63,8 +63,8 @@ export default function PrivateLibraryPage() {
};
const handleVideoClick = (video: Video) => {
// 跳转到播放页面
router.push(`/play?source=openlist&id=${encodeURIComponent(video.folder)}`);
// 跳转到播放页面,使用 idkey)而不是 folder
router.push(`/play?source=openlist&id=${encodeURIComponent(video.id)}`);
};
return (
@@ -106,7 +106,7 @@ export default function PrivateLibraryPage() {
{videos.map((video) => (
<VideoCard
key={video.id}
id={video.folder}
id={video.id}
source='openlist'
title={video.title}
poster={video.poster}