Vue is the default router
export default new Router({
mode: 'history',
routes: [
{
path: '/',
name: 'HelloWorld',
component: HelloWorld
}
]
})
Sometimes we have to achieve more functionality, you need to add more parameters in the router to satisfy the subsequent operations
meta: {
title: 'HelloWork', title
parent: 'home', a layer of the page
index: 'index', page labels
icon: '', icon
rank: 1, Sorting
needRoles: 1, the need permission to access
},
We can set up a meta or other custom parameters to store these contents, inside the parameters we can follow their own needs to set
In this page we often below there will be other sub-pages, you can
children:[]
Content on this page parameter handle inside. . .