主路由Address.vue
<template>
<div>
<router-view/>
</div>
</template>
子路由AddressList.vue
<template>
<div>
<router-link to="/Address/ManageAddress">跳转AddressList</router-link>
</div>
</template>
子路由AddressManage.vue
<template>
<div>
<router-link to="/Address/AddressList">跳转ManageAddress</router-link>
</div>
</template>
index.js
{
path: 'Address',
name: 'Address',
component: Address,
children:[
{
path: '/',
redirect: 'AddressList'
},
{
path:'ManageAddress',
name: 'ManageAddress',
component: ManageAddress
},
{
path:'AddressList',
name: 'AddressList',
component: AddressList
}]
},