From 7f1b75cd0295c5853b6a70fa8139dda237959acb Mon Sep 17 00:00:00 2001 From: Sky Chen Date: Tue, 26 Jan 2021 11:04:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20timeout=20=E6=9C=AA?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复 timeout 未使用问题, 且移除微信不支持 timeout 警告 --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 5421ed8..69b92b8 100755 --- a/src/index.ts +++ b/src/index.ts @@ -55,7 +55,7 @@ export default function mpAdapter (config: AxiosRequestConfig) :AxiosPromise { // Set the request timeout if (config.timeout !== 0) { - warn('The "timeout" option is not supported by miniprogram. For more information about usage see "https://developers.weixin.qq.com/miniprogram/dev/framework/config.html#全局配置"') + mpRequestOption.timeout = config.timeout } // Add headers to the request