From 61511e1fc66a87622555f6c3386a3e8260a528a7 Mon Sep 17 00:00:00 2001 From: Sun_sun <469361609@qq.com> Date: Mon, 8 Sep 2025 09:10:30 +0800 Subject: [PATCH] 2025-09-08 getImageUrl --- src/utils/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/config.js b/src/utils/config.js index 959bbeb..21a8b68 100644 --- a/src/utils/config.js +++ b/src/utils/config.js @@ -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}` } // 在开发环境下,也需要根据路径前缀处理