mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-16 08:37:53 +02:00
Make the Close button of 404 page redirect to the main view - Fixes #233
This commit is contained in:
@ -84,7 +84,7 @@
|
|||||||
mounted(){
|
mounted(){
|
||||||
// stop OTP generation on modal close
|
// stop OTP generation on modal close
|
||||||
this.$on('modalClose', function() {
|
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' })
|
||||||
});
|
});
|
||||||
|
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user