I want to send some data at once, but when sending with loop it gets 500 duplicate id status, maybe when I click JavaScript sends data at once
assignment: function (event) {
for (var i = 0; i < this.perPage; i++){
this.$http.post('mass_assigment', {
id_target: 5,
id_cms_users: 4,
updated_by: 5,
})
.then(function (response) {
console.log(response);
})
.catch(function (error) {
console.log(error);
});
}
alert('sukses')
if (event){
alert(event.target.tagName)
}
}
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire