Skip to content

Commit

Permalink
[replace router ep name]: use currentMetaChap replaced check `route…
Browse files Browse the repository at this point in the history
….params`
  • Loading branch information
tachibana-shin committed May 7, 2023
1 parent 01719a8 commit 5d8b690
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/pages/phim/_season.vue
Original file line number Diff line number Diff line change
Expand Up @@ -916,14 +916,10 @@ watchEffect(() => {
})
// TOOD: check chapName in url is chapName
watchEffect(() => {
const chaps = currentDataSeason.value?.chaps
if (!chaps) return
const { chap: epId } = route.params
const metaEp = epId ? chaps.find((item) => item.id === epId) : undefined
const metaEp = currentMetaChap.value ?? undefined
if (!metaEp) return
const epId = metaEp.id
const correctChapName = parseChapName(metaEp.name)
const urlChapName = route.params.chapName
Expand Down

0 comments on commit 5d8b690

Please sign in to comment.