fix image size

This commit is contained in:
jxxghp
2023-08-04 07:13:26 +08:00
parent 31e47f7a8f
commit 89d982513d
4 changed files with 19 additions and 5 deletions

View File

@@ -371,7 +371,7 @@ const seasonsHeaders = [
const getImgUrl: Ref<string> = computed(() => {
if (imageLoadError.value)
return noImage
const url = props.media?.poster_path ?? noImage
const url = props.media?.poster_path?.replace('original', 'w500') ?? noImage
// 如果地址中包含douban则使用中转代理
if (url.includes('doubanio.com'))
return `${import.meta.env.VITE_API_BASE_URL}douban/img/${encodeURIComponent(url)}`