I used to make a route judgment in the navigation guard in the component. If it was a route before, I refreshed the page once, but now the requirement is not to judge, no matter which page is refreshed before entering the login page. I have tried a lot of methods to refresh the page indefinitely.
beforeRouteEnter(to,from,next){
//
if(from.name == "dealCenter"){
window.location.reload()
}
next()
}