我正在通过在Firefox浏览器中单击一些复选框来执行axios.post和axios.delete。但是我却得到了400。该页面仅在刷新后才能工作。问题在chrome中不存在。
if(!enabled){
const res = await axios.post(`student/${Id}/classes`, ({
studentId: studentId,
}));
}
else {
axios.delete(`student/${Id}/classes/${id}`, {params: {id: id}})
}
}