dva icon indicating copy to clipboard operation
dva copied to clipboard

mock 下 req.body 拿不到请求的参数

Open peterlevel1 opened this issue 9 years ago • 2 comments

module.exports = { "POST /api/users": (req, res) => { console.log("[POST /api/users]: ", req) setTimeout(() => { res.json({ result: "success", data: { yes: "ooo" }, msg: "" }) }, 300) } }


req.body是undefined 前端的参数拿不到的话,对于模拟请求是很蛋疼的事,望改进

peterlevel1 avatar Apr 03 '17 08:04 peterlevel1

https://github.com/sorrycc/roadhog/issues/86

MinLeeV5 avatar Apr 07 '17 01:04 MinLeeV5

try [email protected]

sorrycc avatar Apr 10 '17 09:04 sorrycc