Prefer router.replace if you delete sth.

@ogerly, this is a perfect example where `this.$router.replace` makes a
lot more sense that `this.$router.push`. When you go back in your browser
history, you won't get 404 not found error.
This commit is contained in:
roschaefer 2020-03-24 22:48:11 +01:00
parent bfbbe365ed
commit 574ed578bc

View File

@ -142,7 +142,7 @@ export default {
setTimeout(() => { setTimeout(() => {
this.success = false this.success = false
this.$emit('close') this.$emit('close')
this.$router.history.push('/') this.$router.history.replace('/')
}, 500) }, 500)
}, 1500) }, 1500)
this.loading = false this.loading = false