From 84cb6d77b7574f697d3d8292c361d1e1149a7bed Mon Sep 17 00:00:00 2001 From: Tachibana Shin <118260404+tachib-shin@users.noreply.github.com> Date: Sun, 15 Jan 2023 19:35:24 +0700 Subject: [PATCH] fix other seasons not show if acc from non first season (#88) --- src/pages/phim/_season.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/pages/phim/_season.vue b/src/pages/phim/_season.vue index 1c3c04ad..bfe48855 100644 --- a/src/pages/phim/_season.vue +++ b/src/pages/phim/_season.vue @@ -74,7 +74,7 @@
@@ -548,8 +548,12 @@ watch( { immediate: true } ) watch( - () => data.value?.season, + () => { + if (!data.value) return false + return data.value.season + }, (season) => { + if (season === false) return // check season on tasks if ( seasons.value?.some((item) => item.value === realIdCurrentSeason.value)