Commit 8ed9ba5831a138317df3de794659d04794bc8b04

Authored by 后端研发-倪永富
1 parent 957c2e4b

请求接口的优化

Showing 1 changed file with 1 additions and 1 deletions
utils/request.js
@@ -209,7 +209,7 @@ module.exports = { @@ -209,7 +209,7 @@ module.exports = {
209 time_limit_get(time,url,data){ 209 time_limit_get(time,url,data){
210 var req=this.get(url,data); 210 var req=this.get(url,data);
211 setTimeout(function () { 211 setTimeout(function () {
212 - req.abort(); 212 + if(req) req.abort();
213 },time*1000) 213 },time*1000)
214 } 214 }
215 215