2025-10-16
商城主页 商城分类 我的 商品详情40%
This commit is contained in:
@@ -7,18 +7,18 @@ export const validatePhone = (phone) => {
|
||||
|
||||
export const getImageUrl = (imagePath) => {
|
||||
if (!imagePath) return ''
|
||||
// 如果图片路径以/uploads开头,直接返回原路径
|
||||
const baseURL = "https://minio.zrbjr.com"
|
||||
if (imagePath.startsWith('/uploads')) {
|
||||
return `${baseURL}/jurongquan${imagePath}`
|
||||
}
|
||||
|
||||
if (imagePath.startsWith('http')) return imagePath
|
||||
|
||||
// const baseURL = "http://192.168.1.43:3000"
|
||||
// const baseURL = "https://www.zrbjr.com"
|
||||
const baseURL = "https://minio.zrbjr.com"
|
||||
|
||||
// 如果图片路径以/uploads开头,直接返回原路径
|
||||
if (imagePath.startsWith('/uploads')) {
|
||||
return `${baseURL}/jurongquan${imagePath}`
|
||||
}
|
||||
|
||||
return fullUrl
|
||||
return baseURL + imagePath
|
||||
}
|
||||
|
||||
export const getUserInfo = () => {
|
||||
|
||||
Reference in New Issue
Block a user