onthefly create new person: adding result in suggested/selected list

This commit is contained in:
2021-08-25 18:09:48 +02:00
parent 5884fbaffc
commit e369e43b00
4 changed files with 34 additions and 6 deletions

View File

@@ -162,10 +162,11 @@ export default {
}));
},
postData() {
console.log('postdata before fetch', this.person);
postPerson(this.person)
.then(person => new Promise((resolve, reject) => {
this.person = person;
//console.log('post person', person);
this.$store.commit('newPriorSuggestion', person);
resolve();
}));
}