wxd
/
MShopWeApp
Toggle navigation
Sign in
Sign in
Project
Files
Commits
Network
Graphs
Milestones
Issues
0
Merge Requests
0
Labels
Wiki
Download as
Email Patches
Plain Diff
Browse Code »
Commit
8ed9ba5831a138317df3de794659d04794bc8b04
Authored by
后端研发-倪永富
2019-12-28 16:44:44 +0800
1 parent
957c2e4b
请求接口的优化
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
utils/request.js
utils/request.js
View file @
8ed9ba5
...
...
@@ -209,7 +209,7 @@ module.exports = {
209
209
time_limit_get(time,url,data){
210
210
var req=this.get(url,data);
211
211
setTimeout(function () {
212
-
req.abort();
212
+
if(req)
req.abort();
213
213
},time*1000)
214
214
}
215
215
...
...