From 944998ce59c10ba95f04df5779d714d5255a1299 Mon Sep 17 00:00:00 2001 From: dzl <786316265@qq.com> Date: Tue, 2 Sep 2025 17:21:49 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BC=80=E5=8F=91?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=E5=9B=BE=E7=89=87=E6=98=BE=E7=A4=BAbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config/index.js b/src/config/index.js index c874e11..b6bcb07 100644 --- a/src/config/index.js +++ b/src/config/index.js @@ -1,7 +1,7 @@ // 环境配置 const config = { development: { - baseURL: 'http://localhost:3000', + baseURL: 'https://minio.zrbjr.com/', uploadURL: import.meta.env.VITE_UPLOAD_BASE_URL || 'http://localhost:3000/api/upload' }, production: { @@ -36,7 +36,7 @@ export const getImageUrl = (imagePath) => { const cleanBaseURL = baseURL.replace(/\/$/, '') const cleanImagePath = imagePath.startsWith('/') ? imagePath : `/${imagePath}` const fullUrl = `${cleanBaseURL}${cleanImagePath}` - console.log('Development environment, returning:', fullUrl) + // console.log('Development environment, returning:', fullUrl) return fullUrl } From 546bc4008d99eb32754652e883c7b292b18961b7 Mon Sep 17 00:00:00 2001 From: dzl <786316265@qq.com> Date: Wed, 3 Sep 2025 09:15:40 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 4 ++-- src/config/index.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.env.development b/.env.development index 304410c..9816cd8 100644 --- a/.env.development +++ b/.env.development @@ -1,3 +1,3 @@ # 开发环境配置 -VITE_API_BASE_URL=/api -VITE_UPLOAD_BASE_URL=/api/upload \ No newline at end of file +VITE_API_BASE_URL=https://minio.zrbjr.com/ +VITE_UPLOAD_BASE_URL=https://minio.zrbjr.com/api/upload \ No newline at end of file diff --git a/src/config/index.js b/src/config/index.js index b6bcb07..950dd8c 100644 --- a/src/config/index.js +++ b/src/config/index.js @@ -1,7 +1,7 @@ // 环境配置 const config = { development: { - baseURL: 'https://minio.zrbjr.com/', + baseURL: import.meta.env.VITE_API_BASE_URL || 'https://minio.zrbjr.com/', uploadURL: import.meta.env.VITE_UPLOAD_BASE_URL || 'http://localhost:3000/api/upload' }, production: {