2025-09-08

getImageUrl
This commit is contained in:
2025-09-08 09:10:30 +08:00
parent bcefd2ba71
commit 61511e1fc6

View File

@@ -35,7 +35,7 @@ export const getImageUrl = (imagePath) => {
// 如果图片路径以/uploads开头直接返回原路径
if (imagePath.startsWith('/uploads')) {
// console.log('Image starts with /uploads, returning original path:', imagePath)
return `${cleanBaseURL}/jurongquan${imagePath}`
return `${imagePath}`
}
// 在开发环境下,也需要根据路径前缀处理