From bde70a2e2660d7f8e16ed0d00b66c0063a752c23 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Fri, 4 Apr 2025 18:11:28 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E5=AD=A3=E9=9B=86=E5=88=A4?= =?UTF-8?q?=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/types.ts | 2 ++ src/components/dialog/SearchSiteDialog.vue | 4 +-- .../dialog/SubscribeSeasonDialog.vue | 27 +++++++++++-------- 3 files changed, 20 insertions(+), 13 deletions(-) diff --git a/src/api/types.ts b/src/api/types.ts index 16ad1cc7..72447638 100644 --- a/src/api/types.ts +++ b/src/api/types.ts @@ -290,6 +290,8 @@ export interface MediaInfo { next_episode_to_air?: object // 别名 names?: string[] + // 剧集组 + episode_group?: string } // 季信息 diff --git a/src/components/dialog/SearchSiteDialog.vue b/src/components/dialog/SearchSiteDialog.vue index 7fec2606..10694459 100644 --- a/src/components/dialog/SearchSiteDialog.vue +++ b/src/components/dialog/SearchSiteDialog.vue @@ -24,7 +24,7 @@ const siteFilter = ref('') const selectedSites = ref(props.selected || []) watchEffect(() => { - if (!selectedSites.value && props.selected){ + if (selectedSites.value.length == 0 && props.selected) { selectedSites.value = props.selected } }) @@ -52,7 +52,7 @@ const filteredSites = computed(() => {