vue-routercnpm install vue-router
vue的项目<router-link :to="‘/login‘" v-text="‘登录‘">要渲染的路由</router-link>  
<router-view>被渲染的内容</router-view>
Vue的路由配置{
      path: ‘/yun‘,
      name: ‘Yun‘,
      component: Yun,
      children:[
        {
          path: ‘/login‘,
          name: ‘Login‘,
          component: Login
        },
      ]
    },
```原文:https://www.cnblogs.com/yimeng123/p/14262944.html