uni-app微信小程序配置请求超时
想设置uni.request 的超时时间,找了半天没找到,最后差点用上settimeout了.才发现这配置是放在manifest.json里的。
关于配置的地址:https://uniapp.dcloud.io/collocation/manifest?id=networktimeout
在统一请求里面处理超时的情况
uni.request({
url: url,
data: postdata,
method: opt.method,
header: opt.hea
原创
2020-08-04 10:32:34 ·
2732 阅读 ·
2 评论