the login page is hidden under the app.vue and path, and a logout exit button is placed in the top menu of menu, that is, no matter which page you go to, you can log in (when you are not logged in) and exit (you have logged in).
after clicking the login button on the landing page, refresh the page through window.location.reload ();
. The same is true for exit.
the problem now is that if you don"t click to log in
or to exit
on the home page, you will go to the home page after refreshing the page. Why?
Note: if router.js sets model=history mode, it will not