在项目根目录的manifest.json文件内添加
"name" : "uni-master",
"appid" : "__UNI__DE0362F",
"description" : "",
"versionName" : "1.0.0",
"versionCode" : "100",
"transformPx" : false,
"networkTimeout":{ //这一句
"request":20000 //2万就是20秒
},
具体关于配置的地址:
https://uniapp.dcloud.io/collocation/manifest?id=networktimeout