The el-menu component of elementui, click the menu to solve the routing jump problem.

at first, I had no problem switching like this

Click the icon to enter the icon page

clipboard.png

clipboard.png

:

clipboard.png

clipboard.png


:

clipboard.png

clipboard.png

componentsok:

clipboard.png

components

clipboard.png

I didn"t change the menu configuration and routing configuration of the icon page. I don"t know why I added components, automatically so that the page could not be accessed.

not long after contact with vue, I do not have a deep understanding of routing. I hope all the gods will know how to guide you. Thank you very much.

Mar.17,2021

because the index of your menu configuration is set to 'icons', the jump will jump under the current parent path, not at the root path. Should be changed to / icons

  

the answer to going upstairs is positive solution

Menu