Home > front end >  The router in the vue multilayer <the router - the view> nested
The router in the vue multilayer <the router - the view> nested

Time:12-27

Routes: [

{
Path: '/', component: the Main,
Children:
{
Path: '/help_document',
Component: Help_Document,
},
//my task - all workflow
{
Path: 'the work', component: Work_Main,
Children:
{
Path: 'task',
Component: Work_MyTask
},
{
Path: 'release',
Component: Work_MyRelease
}
}
}
]

Above is the router Settings!
In the Main vue one & lt; The router - view>
Also exist in Work_Main a & lt; The router - view>

Actual operation: '/help_document path first jump' work/release (no problem) rendering;

'work/release' jump to 'work/task (apply colours to a drawing is no problem);
"The work/task" jump to "/help_document; The above rendering.
But again: jump from under the '/help_document' path 'work/release,

Browser address bar display correctly, renders the contents of the picture is a 'work/task'.

O great god answer?

CodePudding user response:

Brother, I also encountered this problem, do you have a solution?
  • Related