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