跳转地址:
<router-link :to="{name: 'UserProfile', params: {id: 1}}">个人信息</router-link>
路由:
{path: '/user/profile/:id', name: 'UserProfile', component: UserProfile, props: true},
接收:
props: ['id'],
<router-link :to="{name: 'UserProfile', params: {id: 1}}">个人信息</router-link>
<router-view/>