2025-10-16

商城主页
商城分类
我的
商品详情40%
This commit is contained in:
2025-10-16 17:07:47 +08:00
parent ad2ce26c08
commit 28e36b5625
29 changed files with 1008 additions and 158 deletions

View File

@@ -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 = () => {