From b370354287780ac20cb05a03aefb1d3af2b8f228 Mon Sep 17 00:00:00 2001 From: CHANTXU64 Date: Mon, 2 Feb 2026 10:13:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20TMDB=20=E5=89=A7=E9=9B=86=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E9=A1=B5=E6=94=AF=E6=8C=81=E6=98=BE=E7=A4=BA=E7=AC=AC?= =?UTF-8?q?=200=20=E5=AD=A3=EF=BC=88=E7=89=B9=E5=88=AB=E7=AF=87=EF=BC=89?= =?UTF-8?q?=E5=B9=B6=E5=B0=86=E5=85=B6=E6=8E=92=E5=BA=8F=E5=88=B0=E6=9C=AB?= =?UTF-8?q?=E5=B0=BE=20(jxxghp/MoviePilot#5444)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/discover/MediaDetailView.vue | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/views/discover/MediaDetailView.vue b/src/views/discover/MediaDetailView.vue index b5d3560f..f1643da5 100644 --- a/src/views/discover/MediaDetailView.vue +++ b/src/views/discover/MediaDetailView.vue @@ -234,9 +234,14 @@ async function checkMovieSubscribed() { isSubscribed.value = await checkSubscribe() } -// 过滤掉第0季 +// 季列表,第0季排在最后 const getMediaSeasons = computed(() => { - return mediaDetail.value?.season_info?.filter(season => season.season_number !== 0) + if (!mediaDetail.value?.season_info) return [] + return [...mediaDetail.value.season_info].sort((a, b) => { + if (a.season_number === 0) return 1 + if (b.season_number === 0) return -1 + return (a.season_number || 0) - (b.season_number || 0) + }) }) // 检查所有季的订阅状态 @@ -742,8 +747,9 @@ onBeforeMount(() => {