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] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E5=9B=BE=E7=89=87=E8=8E=B7?= =?UTF-8?q?=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: {