When I logout from a page it calls a following error: (Uncaught (in promise) Error: Navigation cancelled from "/recenzije" to "/prijava" with a new navigation). Is this maybe because i have duplicated routes when user is not logged in or what?
Here is my app.vue code (I think there is a problem because when I remove it the problem disappears):
if(currentRoute.meta.needsUser){
router.push({name:'prijava'});
}
And there is my logout function in a different vue (recenzije.vue):
signOut() {
firebase.auth().signOut().then(() =>{
this.$router.push({ name: 'prijava' })
})
},
Any help would be appreciated.
question from:
https://stackoverflow.com/questions/66067328/navigation-cancelled-in-console-what-could-be-wrong 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…