vue-router and two nested route route redirection

(1) common routing cuts

  Not every page there are navigation, so do not put navigation components in the root element APP.vue in the introduction, which required page, where you can be introduced.

  Program:

Which pages need, in which pages can be introduced

 

(2) nested route

  Note: path under the children do not need / it will auto-complete match

  

  

 

   Next, rendering two nested routed to the corresponding page

  

 

 

(3) nested route redirection

Use redirect attribute redirection

  

 

(4) three multi-level routing ||

  Similar to the above, we can continue to add to children under

 

 

 

 

 

 

 

.

Guess you like

Origin www.cnblogs.com/jianxian/p/11965613.html