From 51d07db99b148f93a3a3329698a1f3670b0dccca Mon Sep 17 00:00:00 2001 From: shaw <53377526+jtcymc@users.noreply.github.com> Date: Sat, 12 Jul 2025 00:01:55 +0800 Subject: [PATCH] =?UTF-8?q?refactor(dialog):=20=E5=B0=86=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E8=BE=93=E5=87=BA=E7=BA=A7=E5=88=AB=E4=BB=8E=20log=20=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=20warn?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 SubscribeEditDialog.vue 和 SubscribeSeasonDialog.vue 组件中- 当 tmdbid 未设置或为空时,使用 console.warn替代 console.log - 此修改提高了日志的可见性和严重性级别,以便更好地提醒开发者注意潜在问题 --- src/components/dialog/SubscribeEditDialog.vue | 2 +- src/components/dialog/SubscribeSeasonDialog.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/dialog/SubscribeEditDialog.vue b/src/components/dialog/SubscribeEditDialog.vue index 6f7cc80d..5d717c2c 100644 --- a/src/components/dialog/SubscribeEditDialog.vue +++ b/src/components/dialog/SubscribeEditDialog.vue @@ -100,7 +100,7 @@ function episodeGroupItemProps(item: { title: string; subtitle: string }) { // 查询所有剧集组 async function getEpisodeGroups() { if (!subscribeForm.value.tmdbid) { - console.log('tmdbid is not set or is empty') + console.warn('tmdbid is not set or is empty') return } try { diff --git a/src/components/dialog/SubscribeSeasonDialog.vue b/src/components/dialog/SubscribeSeasonDialog.vue index 1ee970dc..34302f5a 100644 --- a/src/components/dialog/SubscribeSeasonDialog.vue +++ b/src/components/dialog/SubscribeSeasonDialog.vue @@ -82,7 +82,7 @@ function getMediaId() { // 查询所有剧集组 async function getEpisodeGroups() { if (!props.media?.tmdb_id) { - console.log('tmdbid is not set or is empty') + console.warn('tmdbid is not set or is empty') return } try {