This.$router.push does not refresh the problem after jumping

after logging in to one user, switch to another user. After logging in, jump to the home page and get the information of the previous user. Just refresh it and study it. It should be the problem that the page does not refresh after jumping with this.$router.push. How to solve

Dec.08,2021

you can use this.$router.go


keep-alive. Is it affected?


just add key to the router-view, because there is a page cache in the routing page.

Menu