Make the Close button of 404 page redirect to the main view - Fixes #233

This commit is contained in:
Bubka 2023-09-19 21:12:41 +02:00
parent 159e2711fd
commit 8518f5ebc5

View File

@ -84,7 +84,7 @@
mounted(){
// stop OTP generation on modal close
this.$on('modalClose', function() {
window.history.length > 1 ? this.$router.go(-1) : this.$router.push({ name: 'accounts '})
window.history.length > 1 && this.$route.name !== '404' ? this.$router.go(-1) : this.$router.push({ name: 'accounts' })
});
},