From 328ae8cd55e88a939a8824a68c2a384733d7b4dd Mon Sep 17 00:00:00 2001 From: lbw_9527443 <780139497@qq.com> Date: Tue, 2 Sep 2025 10:45:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9axios=E5=AE=9E?= =?UTF-8?q?=E4=BE=8B=E7=9A=84baseURL=E4=B8=BA=E6=9C=AC=E5=9C=B0=E5=BC=80?= =?UTF-8?q?=E5=8F=91=E7=8E=AF=E5=A2=83=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将生产环境API地址注释掉,启用本地开发环境地址以便于调试 --- my-vue-app/src/utils/https.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/my-vue-app/src/utils/https.js b/my-vue-app/src/utils/https.js index ae8c3b2..98c3a3f 100644 --- a/my-vue-app/src/utils/https.js +++ b/my-vue-app/src/utils/https.js @@ -5,8 +5,8 @@ import { useUserStore } from '@/stores/user' // 创建axios实例 const service = axios.create({ - baseURL: 'https://mldash.nycjy.cn/' || '', // API基础路径,支持完整URL - // baseURL: 'http://192.168.15.121:8890' || '', // API基础路径,支持完整URL + // baseURL: 'https://mldash.nycjy.cn/' || '', // API基础路径,支持完整URL + baseURL: 'http://192.168.15.121:8889' || '', // API基础路径,支持完整URL timeout: 100000, // 请求超时时间 headers: { 'Content-Type': 'application/json;charset=UTF-8'