diff --git a/src/components/dialog/SubscribeEditDialog.vue b/src/components/dialog/SubscribeEditDialog.vue index 479fd88b..6f7cc80d 100644 --- a/src/components/dialog/SubscribeEditDialog.vue +++ b/src/components/dialog/SubscribeEditDialog.vue @@ -99,6 +99,10 @@ function episodeGroupItemProps(item: { title: string; subtitle: string }) { // 查询所有剧集组 async function getEpisodeGroups() { + if (!subscribeForm.value.tmdbid) { + console.log('tmdbid is not set or is empty') + return + } try { episodeGroups.value = await api.get(`media/groups/${subscribeForm.value.tmdbid}`) } catch (error) { @@ -283,7 +287,7 @@ onMounted(() => { - + diff --git a/src/components/dialog/SubscribeSeasonDialog.vue b/src/components/dialog/SubscribeSeasonDialog.vue index 8f24d2e8..1ee970dc 100644 --- a/src/components/dialog/SubscribeSeasonDialog.vue +++ b/src/components/dialog/SubscribeSeasonDialog.vue @@ -81,6 +81,10 @@ function getMediaId() { // 查询所有剧集组 async function getEpisodeGroups() { + if (!props.media?.tmdb_id) { + console.log('tmdbid is not set or is empty') + return + } try { episodeGroups.value = await api.get(`media/groups/${props.media?.tmdb_id}`) } catch (error) {