-
Status changed to merged
-
mentioned in commit da67cf7bbd23979c409fbec5cba90c17488a3865
-
请求接口的优化 See merge request !221
Showing
1 changed file
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 |