xdoer / PreQuest

A Modular And Pluggable Solution For HTTP Request.
https://pre-quest.vercel.app
MIT License
88 stars 14 forks source link

请求payload 序列化问题? #52

Open fxjs opened 1 year ago

fxjs commented 1 year ago

` import { create, PreQuest } from '@prequest/xhr';

const $http = create();

$http.post('test', { data: { a: 1 }, });

` 为啥请求参数会变成 [object Object] 呢? (content-type是application json) @xdoer 老哥 帮看看呗

xdoer commented 1 year ago

完整的代码贴下