Vue-router jumps to the specified page

now I have such a requirement. There is a B sub-component under A component and a D sub-component under C component. An and C are two independent components. Now I want to click on B component to jump to D component. All the components have been routed. Do you have any good methods and ideas?

Mar.10,2021

your structure has already been decided.

{
    path: 'A',
    children: ['B']
},
{
    path: 'C',
    children: ['D']
}

it would be nice to add a router-link to D in B for your jump.

Menu