diff --git a/src/components/cards/MediaCard.vue b/src/components/cards/MediaCard.vue index 99b117d3..199bb652 100644 --- a/src/components/cards/MediaCard.vue +++ b/src/components/cards/MediaCard.vue @@ -381,7 +381,7 @@ const getImgUrl: Ref = computed(() => { // 拼装季图片地址 function getSeasonPoster(posterPath: string) { if (!posterPath) return '' - return `https://image.tmdb.org/t/p/w500${posterPath}` + return `https://${globalSettings.TMDB_IMAGE_DOMAIN}/t/p/w500${posterPath}` } // 将yyyy-mm-dd转换为yyyy年mm月dd日 diff --git a/src/components/cards/PersonCard.vue b/src/components/cards/PersonCard.vue index 47dbde77..042b23d5 100644 --- a/src/components/cards/PersonCard.vue +++ b/src/components/cards/PersonCard.vue @@ -23,7 +23,7 @@ function getPersonImage() { let url = '' if (personProps.person?.source === 'themoviedb') { if (!personInfo.value?.profile_path) return personIcon - url = `https://image.tmdb.org/t/p/w600_and_h900_bestv2${personInfo.value?.profile_path}` + url = `https://${globalSettings.TMDB_IMAGE_DOMAIN}/t/p/w600_and_h900_bestv2${personInfo.value?.profile_path}` } else if (personProps.person?.source === 'douban') { if (!personInfo.value?.avatar) return personIcon if (typeof personInfo.value?.avatar === 'object') { diff --git a/src/views/discover/MediaDetailView.vue b/src/views/discover/MediaDetailView.vue index f7486e91..44abf8e3 100644 --- a/src/views/discover/MediaDetailView.vue +++ b/src/views/discover/MediaDetailView.vue @@ -313,7 +313,7 @@ function getBangumiLink() { // 拼装集图片地址 function getEpisodeImage(stillPath: string) { if (!stillPath) return '' - return `https://image.tmdb.org/t/p/w500${stillPath}` + return `https://${globalSettings.TMDB_IMAGE_DOMAIN}/t/p/w500${stillPath}` } // TMDB图片转换为w500大小 diff --git a/src/views/discover/PersonDetailView.vue b/src/views/discover/PersonDetailView.vue index a6efe7b1..5380c2ff 100644 --- a/src/views/discover/PersonDetailView.vue +++ b/src/views/discover/PersonDetailView.vue @@ -43,7 +43,7 @@ function getPersonImage() { let url = '' if (personProps.source === 'themoviedb') { if (!personDetail.value?.profile_path) return personIcon - url = `https://image.tmdb.org/t/p/w600_and_h900_bestv2${personDetail.value?.profile_path}` + url = `https://${globalSettings.TMDB_IMAGE_DOMAIN}/t/p/w600_and_h900_bestv2${personDetail.value?.profile_path}` } else if (personProps.source === 'douban') { if (!personDetail.value?.avatar) return personIcon if (typeof personDetail.value?.avatar === 'object') {