mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-11-22 16:23:18 +01:00
Make the Close button of 404 page redirect to the main view - Fixes #233
This commit is contained in:
parent
159e2711fd
commit
8518f5ebc5
@ -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' })
|
||||
});
|
||||
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user