From 81936877a8837e93909816646919ac1906f3a2e8 Mon Sep 17 00:00:00 2001 From: bb_pan Date: Fri, 25 Jul 2025 16:49:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=B6=85=E6=97=B6=E6=97=B6?= =?UTF-8?q?=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/http.js | 2 +- vite.config.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils/http.js b/src/utils/http.js index 69f5e8a..dc4b9a7 100644 --- a/src/utils/http.js +++ b/src/utils/http.js @@ -32,7 +32,7 @@ const httpInterceptor = { } // 2. 设置请求超时时间,默认为60s,设置为 10s - options.timeout = 15000 + options.timeout = 30000 // 3. 增加小程序端请求头标识 options.header = { diff --git a/vite.config.js b/vite.config.js index 6b75f69..e8eb8dd 100644 --- a/vite.config.js +++ b/vite.config.js @@ -20,8 +20,8 @@ export default defineConfig({ proxy: { // 在此处编写代理规则 '/api': { - // target: 'http://192.168.2.76:18080', - target: 'http://192.168.0.96:18080', + target: 'http://sgwpdm.ah.sgcc.com.cn/iws/jiju-api', + // target: 'http://192.168.0.96:18080', // target: 'http://36.33.26.201:19988/prod-api/', // target: 'http://192.168.0.234:18080', // target: 'http://localhost:18080',