求助koa2如何接收delete请求的参数
发布于 6 年前 作者 tanyukang 4203 次预览 最后一次回复是 6 年前 来自 问答
后端代码
router.prefix('/blogType');
router.delete('/', async (ctx)=>{
ctx.body= '';
})
前端代码
this.axios("delete", "/blogType", {
data:{
_id: _id
}
})
.then(res => {
})
1 回复
打印ctx就知道了,就在里面