【发布时间】:2016-12-28 17:55:38
【问题描述】:
this.$http.post('../idea/comment'+idea_id, newResponse).then((response) => {
//do something
}, (response) => {
});
//get returned comment
//update DOM
},
}
});
所有获取请求都运行良好,但我在尝试发布请求时不断收到此错误。
【问题讨论】:
-
由于您的代码中没有替换,因此您不能向我们展示正确的块。
-
尝试将 url 更正为 'idea/comment/' + idea_id
标签: javascript laravel vue.js