replace router.push with router.replace

with replace you can't return to the previous page which is what we want after a
form.
This commit is contained in:
Andreas Zweili 2021-06-29 21:59:35 +02:00
parent 71c5e352b6
commit 50f8c33dd4
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ export default {
methods: {
saveData(data) {
this.$store.dispatch('coaches/registerCoach', data);
this.$router.push('/coaches');
this.$router.replace('/coaches');
}
}
};