Skip to content

Commit

Permalink
更新readme
Browse files Browse the repository at this point in the history
  • Loading branch information
zyh committed Apr 7, 2020
1 parent 0bff64d commit d96959d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -419,11 +419,13 @@
method: "GET",
success: res => {
setTimeout(_ => {
opt['success'] && opt['success'](res.data);
resolve(res.data)
}, 0)
},
fail: err => {
reject(err);
opt['fail'] && opt['fail'](err);
reject(err)
}
})
})
Expand All @@ -442,10 +444,12 @@
method: "POST",
success: res => {
setTimeout(_ => {
opt['success'] && opt['success'](res.data);
resolve(res.data)
}, 0)
},
fail: err => {
opt['fail'] && opt['fail'](err);
reject(err)
}
})
Expand Down

0 comments on commit d96959d

Please sign in to comment.