动态路由的意义,以及路由重定向

to 和:to 的区别:  ********
<router-link to="apple/123456">to red apple</router-link> //表示跳转只apple的子路由为123456的页面去   不带 :to 
<router-link :to="{path:'apple/ip'}">to red apple</router-link>//表示跳转到动态传参的ip(1234或者456 等等)中  而不是一个ip的字符串
见下图:

关于重定向以及子路由的使用理解:
原文地址:https://www.cnblogs.com/lanSeGeDiao/p/8781129.html