Skip to content

Commit

Permalink
fix(weapp): 微信小程序Taro.request的complete回调无参数 (#1011)
Browse files Browse the repository at this point in the history
  • Loading branch information
feiqitian authored and luckyadam committed Nov 6, 2018
1 parent 9bf3fb8 commit d55dabf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/taro-weapp/src/native-api.js
Expand Up @@ -25,8 +25,8 @@ const RequestQueue = {
if (this.queue.length <= this.MAX_REQUEST) {
let options = this.queue.shift()
let completeFn = options.complete
options.complete = () => {
completeFn && completeFn.apply(options, [...arguments])
options.complete = (...args) => {
completeFn && completeFn.apply(options, args)
this.run()
}
wx.request(options)
Expand Down

0 comments on commit d55dabf

Please sign in to comment.