Commit 5ac27a0e2a09d2ff78b5d84ae4cddaaf775fe11b
Merge branch 'dev' into 'test'
请求接口的优化 See merge request !221
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 |