Skip to content

Commit

Permalink
fix other seasons not show if acc from non first season (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
tachib-akiko authored Jan 15, 2023
1 parent cf9d8d8 commit 84cb6d7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/pages/phim/_season.vue
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
</div>

<div
v-if="loading"
v-if="loading && !data"
class="absolute w-full h-full overflow-hidden px-4 pt-6 text-[28px] row"
>
<div class="col-9 pr-4">
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 84cb6d7

Please sign in to comment.