image proxy

This commit is contained in:
jxxghp
2024-01-05 21:35:33 +08:00
parent d02fe55a1e
commit ace7a6621f
4 changed files with 12 additions and 4 deletions
+2 -1
View File
@@ -30,7 +30,8 @@ function getChipColor(type: string) {
const getImgUrl = computed(() => {
if (imageLoadError.value)
return noImage
return props.media?.image
const image = props.media?.image || ''
return `${import.meta.env.VITE_API_BASE_URL}system/img/${encodeURIComponent(image)}`
})
// 跳转播放