My router.js
имеет несколько встроенных дочерних элементов:
routes: [{
path: '/',
name: 'login',
component: Login,
},
{
path: '/app',
component: Container,
children: [{
path: '',
name: 'ConversationsList',
component: ConversationsList
}, {
path: 'call',
name: 'Call',
component: Call
}, {
path: 'conversation/:id',
name: 'ConversationDetail',
component: ConversationDetail,
children: [{
path: '',
name: 'ConversationDetailHighlights',
component: ConversationDetailHighlights
}, {
path: 'transcript',
name: 'ConversationDetailFullTranscript',
component: ConversationDetailFullTranscript
}]
}]
},
],
Мой текущий маршрут /app/conversation/:id
, и я хочу, чтобы в моем шаблоне была ссылка на /app/conversation/:id/transcript
.Как мне сделать это с помощью vue.js?