feat: Update nhiều thứ

This commit is contained in:
ngthanhvu
2026-07-28 21:55:39 -04:00
parent 72bc657d86
commit 1c92c0d50b
14 changed files with 173 additions and 129 deletions
+3 -14
View File
@@ -19,20 +19,9 @@ const props = defineProps<{
}
}>()
const episodeDisplay = computed(() => {
const ep = props.movie.episode
const total = props.movie.episodeTotal
if (!ep) return undefined
const totalNum = total ? total.replace(/[^0-9]/g, '') : ''
const epNum = ep.replace(/[^0-9]/g, '')
if (epNum && totalNum && epNum !== totalNum) {
return `Tập ${epNum}/${totalNum}`
}
return ep
})
const episodeDisplay = computed(() =>
getEpisodeDisplay(props.movie.episode, props.movie.episodeTotal),
)
const isPreviewVisible = ref(false)
const isDescriptionExpanded = ref(false)