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',