mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-07-12 16:01:35 +08:00
fix 编码斜杠禁用的反代无法加载图片 修改url编码
This commit is contained in:
@@ -399,7 +399,7 @@ const getImgUrl: Ref<string> = computed(() => {
|
|||||||
const url = props.media?.poster_path?.replace('original', 'w500') ?? noImage
|
const url = props.media?.poster_path?.replace('original', 'w500') ?? noImage
|
||||||
// 如果地址中包含douban则使用中转代理
|
// 如果地址中包含douban则使用中转代理
|
||||||
if (url.includes('doubanio.com'))
|
if (url.includes('doubanio.com'))
|
||||||
return `${import.meta.env.VITE_API_BASE_URL}douban/img/0/${url}`
|
return `${import.meta.env.VITE_API_BASE_URL}douban/img/0/${encodeURIComponent(url).replace(/%2F/g, '/')}`
|
||||||
|
|
||||||
return url
|
return url
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user