router roles demo
This commit is contained in:
parent
7579953c51
commit
57af617fed
|
@ -18,10 +18,14 @@ const router = new VueRouter({
|
|||
{
|
||||
path: "/content", components: {
|
||||
content: Setting
|
||||
}, children: [
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: 'workspace',
|
||||
component: Workspace
|
||||
component: Workspace,
|
||||
meta: {
|
||||
roles: ['admin']
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'user',
|
||||
|
@ -33,7 +37,8 @@ const router = new VueRouter({
|
|||
path: "/createTest", components: {
|
||||
content: CreateTestPlan
|
||||
}
|
||||
},]
|
||||
},
|
||||
]
|
||||
});
|
||||
|
||||
export default router
|
||||
|
|
Loading…
Reference in New Issue