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://i-blog.csdnimg.cn/blog_migrate/66519427b699f18dfc8d1d78c5245cce.png)
关于重定向以及子路由的使用理解:
![](https://i-blog.csdnimg.cn/blog_migrate/5e7496fadae41d5e4787aa242036b80a.png)