Regarding vue, when the current second-level route clicks on the third-level route, replace the current second-level route

Regarding vue, when the current second-level route clicks on the third-level route, replace the current second-level route

  1. First of all, it is necessary to make the second-level routing and the third-level routing equal, that is, the second-level routing is also included in the third-level routing.
  2. Let the second-level route redirect to the third-level route
  3. Component is written as a method to become a route
    insert image description here

Effect:
insert image description here
insert image description here

Guess you like

Origin blog.csdn.net/weixin_42947972/article/details/124262602