mirror of
https://github.com/zclzone/vue-naive-admin.git
synced 2025-05-01 06:39:01 +08:00
47 lines
1.1 KiB
JavaScript
47 lines
1.1 KiB
JavaScript
import Layout from '@/layout/index.vue'
|
|
|
|
export default [
|
|
{
|
|
name: 'Example',
|
|
path: '/example',
|
|
component: Layout,
|
|
redirect: '/example/table',
|
|
meta: {
|
|
title: '组件示例',
|
|
role: ['admin'],
|
|
},
|
|
children: [
|
|
{
|
|
name: 'Table',
|
|
path: 'table',
|
|
component: () => import('@/views/examples/table/index.vue'),
|
|
redirect: '/example/table/post',
|
|
meta: {
|
|
title: '表格',
|
|
role: ['admin'],
|
|
},
|
|
children: [
|
|
{
|
|
name: 'PostList',
|
|
path: 'post',
|
|
component: () => import('@/views/examples/table/post/index.vue'),
|
|
meta: {
|
|
title: '文章列表',
|
|
role: ['admin'],
|
|
},
|
|
},
|
|
{
|
|
name: 'PostCreate',
|
|
path: 'post-create',
|
|
component: () => import('@/views/examples/table/post/post-create.vue'),
|
|
meta: {
|
|
title: '创建文章',
|
|
role: ['admin'],
|
|
},
|
|
},
|
|
],
|
|
},
|
|
],
|
|
},
|
|
]
|