这是我的代码。我想在用户数组中删除第一个对象,但是在我的浏览器控制台中显示此错误。
删除http://localhost:3000/users?id=1 404(未找到)
delete(){
this.resource = this.$resource("http://localhost:3000/users");
this.resource.delete({id: 1})
.then(response => {
return response
}, response => {
console.log(response)
});
}