【发布时间】:2018-04-11 11:47:53
【问题描述】:
创建了一个在 lumen 中插入 todo 的路由,它使用邮递员完美地工作,但是在我使用 axios 发送的反应应用程序请求中,它得到错误
this.apiUrl = 'http://lumenback.dev/createTodo';
axios.post(this.apiUrl, {
todo: this.state.todo,
todo_date: this.props.curDate
})
.then(function (response) {
console.log(response);
}).catch(function (error) {
console.log(error);
});
提前谢谢...
【问题讨论】:
标签: php reactjs axios lumen lumen-5.4