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