mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-05-11 18:10:49 +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
|
||||
// 如果地址中包含douban则使用中转代理
|
||||
if (url.includes('doubanio.com'))
|
||||
return `${import.meta.env.VITE_API_BASE_URL}douban/img/0/${encodeURIComponent(url).replace(/%2F/g, '/')}`
|
||||
return `${import.meta.env.VITE_API_BASE_URL}douban/img/0/${encodeURIComponent(url)}`
|
||||
|
||||
return url
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user