mounted() {
document.addEventListener('backbutton', () => {
alert('back')
// on device back button go back
this.$router.back()
// if in home page exit app?? navigator.app.exitApp();
}, false)
}
}
how to check if there in no page to goback and exit app