vue怎么写put请求

我是这样写的
vue怎么写put请求
报错如图
vue怎么写put请求
求助

回答

这得看你$http是啥库啊, 比如axios:

    /**

* 重考

*

* @param examPaperId

* @param studentNo

*/

examAgain({

examPaperId,

studentNo

}) {

return axios.put('/examInfo/examAgain', {

examPaperId,

studentNo

}, {

headers: {

'Content-Type': 'application/json'

}

});

},

以上是 vue怎么写put请求 的全部内容, 来源链接: utcz.com/a/84952.html

回到顶部