1.先下载对应的vue-router
cnpm install vue-router
2.vue的项目
<router-link :to="'/login'" v-text="'登录'">二级路由的路径</router-link>
<router-view>被渲染的内容</router-view>
3.Vue的路由配置
{
path: '/yun',
name: 'Yun',
component: Yun,
children:[
{
path: '/login',
name: 'Login',
component: Login
},
]
},
```