mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-04-13 03:58:47 +02: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(){
|
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' })
|
||||||
});
|
});
|
||||||
|
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user