The use of addRoutes in Vue-router has no effect.

it is not valid to add dynamic routes in vue-router using addRoutes .

The
  http://localhost:8080/-sharp/login page is also displayed normally. 
after a successful login, the router.push ("/") to the root path page is a blank.

there is no problem in determining the path. Components are loaded normally into. I really don"t know where I went wrong.

Mar.24,2021

No one answered.


I have the same problem. Have you solved it?


Hello, I have the same problem as you. Have you solved


have you solved it?


landlord, have you solved it? now I have also encountered that using addRoutes in


beforeEach cannot be added, because this is the hook before the access route. You need to make your own judgment. You can redirect to the visited page after addRoutes and visit it again, because addRoutes has already been executed

.
Menu