From b8e7dc37e203a8afaa96f4a802dee586a9d12df2 Mon Sep 17 00:00:00 2001 From: feige996 <1020102647@qq.com> Date: Sun, 17 Aug 2025 15:13:58 +0800 Subject: [PATCH] =?UTF-8?q?perf(http):=20=E5=A2=9E=E5=8A=A0=E8=AF=B7?= =?UTF-8?q?=E6=B1=82=E8=B6=85=E6=97=B6=E6=97=B6=E9=97=B4=E8=87=B360?= =?UTF-8?q?=E7=A7=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 原10秒超时时间对于某些复杂请求可能不足,调整为60秒以提供更稳定的请求处理 --- src/http/interceptor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http/interceptor.ts b/src/http/interceptor.ts index 357780b..30350b4 100644 --- a/src/http/interceptor.ts +++ b/src/http/interceptor.ts @@ -40,7 +40,7 @@ const httpInterceptor = { // TIPS: 如果需要对接多个后端服务,也可以在这里处理,拼接成所需要的地址 } // 1. 请求超时 - options.timeout = 10000 // 10s + options.timeout = 60000 // 60s // 2. (可选)添加小程序端请求头标识 options.header = { platform, // 可选,与 uniapp 定义的平台一致,告诉后台来源