mfetch 无法像fetch一样直接传递数组---bug
Oscar19921030 opened this issue · comments
OscarX commented
fetch的body:JSON.stringify([{}]),可以直接传递数组给后端,但是mfetch的params:JSON.stringify([{}])会 封装成了一个对象。
Janry commented
如果你要传数组,可以直接用body参数,不需要用params,fetch({body:xxx})
mfetch will provide you with a strong ability to request resource management
Oscar19921030 opened this issue · comments
fetch的body:JSON.stringify([{}]),可以直接传递数组给后端,但是mfetch的params:JSON.stringify([{}])会 封装成了一个对象。
如果你要传数组,可以直接用body参数,不需要用params,fetch({body:xxx})