perf(http): 增加请求超时时间至60秒
原10秒超时时间对于某些复杂请求可能不足,调整为60秒以提供更稳定的请求处理
This commit is contained in:
@@ -40,7 +40,7 @@ const httpInterceptor = {
|
||||
// TIPS: 如果需要对接多个后端服务,也可以在这里处理,拼接成所需要的地址
|
||||
}
|
||||
// 1. 请求超时
|
||||
options.timeout = 10000 // 10s
|
||||
options.timeout = 60000 // 60s
|
||||
// 2. (可选)添加小程序端请求头标识
|
||||
options.header = {
|
||||
platform, // 可选,与 uniapp 定义的平台一致,告诉后台来源
|
||||
|
||||
Reference in New Issue
Block a user