2025-09-08
getImageUrl
This commit is contained in:
@@ -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}`
|
||||
}
|
||||
|
||||
// 在开发环境下,也需要根据路径前缀处理
|
||||
|
||||
Reference in New Issue
Block a user