fix 编码斜杠禁用的反代无法加载图片 修改url编码

This commit is contained in:
aodi
2024-04-15 18:08:58 +08:00
parent 8bcff774fa
commit 6e3f9b285d

View File

@@ -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
})