提交 57af617f 编写于 作者: C Captain.B

router roles demo

上级 7579953c
......@@ -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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册