Каждый раз, когда я делаю некоторые задачи, Удаленные, ничего не происходит, но когда я обновляю страницу, задачи удаляются
Это мой код мопса
button.btn.btn-danger.float-right#delete(v-on:click="delete_event(client_id,id)" type="button" style="margin-left:10px;")
i.fa.fa-trash(style="font-size:20px; color:whitesmoke;")
Это моя функция Vue.js
delete_event:function(){
this.loading=true;
let url='/clients/' + this.client_id + '/events/' + this.event.id;
this.$http.delete(url).then(res=>{
if(res.data.errcode == 1){
this.$root.$refs.toastr.e(res.data.errmess,this.$t("template.Error"));
}else{
this.$root.$refs.toastr.s(this.$t("client.Task_deleted"),this.$t("template.Success"));
}
this.loading=false;
},res=>{
this.$root.$refs.toastr.e(this.$t("template.Server_error").this.$t("template.Error"));
this.loading=false;
});
}
Это мой контроллер
public function delete_event(Request $request,$client_id,$id){
return response()->json(Event::destroy($id),200);
}