janryWang / mfetch

mfetch will provide you with a strong ability to request resource management

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mfetch 无法像fetch一样直接传递数组---bug

Oscar19921030 opened this issue · comments

fetch的body:JSON.stringify([{}]),可以直接传递数组给后端,但是mfetch的params:JSON.stringify([{}])会 封装成了一个对象。

commented

如果你要传数组,可以直接用body参数,不需要用params,fetch({body:xxx})