wux-weapp / wx-extend

:dog: 微信小程序 - 扩展插件(发送请求、Promise API、表单验证、Restful API)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

这段代码似乎有点问题

muzhi1991 opened this issue · comments

https://github.com/skyvow/wx-extend/blob/554005539070bc6e73163660487dd85e3125118c/src/assets/plugins/wx-request/lib/core/WxRequest.js#L147-L151

参数arguments设置的有没有问题?这样吧?

if (typeof config === 'string') {
            config = Object.assign({}, {
                url: arguments[0]
            }, arguments[1])
        }