uni.request請求超時,是在manifest.json配置
相關uni文檔:https://uniapp.dcloud.io/collocation/manifest?id=networktimeout
如圖所示,請求超時的默認時間均爲6000毫秒,可根據自己的需求在 manifest.json 的 源碼視圖 裏面更改。
設置完成後,服務需重啓才能生效!
"networkTimeout":{
"request":30000,
"uploadFile":60000,
"downloadFile":60000
}