2019-04-01 09:07:16 +00:00
|
|
|
// Just a mock data
|
|
|
|
|
|
|
|
export const constantRoutes = [
|
|
|
|
{
|
|
|
|
path: '/redirect',
|
|
|
|
component: 'layout/Layout',
|
|
|
|
hidden: true,
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: '/redirect/:path*',
|
|
|
|
component: 'views/redirect/index'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/login',
|
|
|
|
component: 'views/login/index',
|
|
|
|
hidden: true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/auth-redirect',
|
2019-04-12 09:13:27 +00:00
|
|
|
component: 'views/login/auth-redirect',
|
2019-04-01 09:07:16 +00:00
|
|
|
hidden: true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/404',
|
2019-04-12 09:13:27 +00:00
|
|
|
component: 'views/error-page/404',
|
2019-04-01 09:07:16 +00:00
|
|
|
hidden: true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/401',
|
2019-04-12 09:13:27 +00:00
|
|
|
component: 'views/error-page/401',
|
2019-04-01 09:07:16 +00:00
|
|
|
hidden: true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
component: 'layout/Layout',
|
|
|
|
redirect: 'dashboard',
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'dashboard',
|
|
|
|
component: 'views/dashboard/index',
|
|
|
|
name: 'Dashboard',
|
2019-05-05 08:49:40 +00:00
|
|
|
meta: { title: 'Dashboard', icon: 'dashboard', affix: true }
|
2019-04-01 09:07:16 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/documentation',
|
|
|
|
component: 'layout/Layout',
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'index',
|
|
|
|
component: 'views/documentation/index',
|
|
|
|
name: 'Documentation',
|
2019-05-05 08:49:40 +00:00
|
|
|
meta: { title: 'Documentation', icon: 'documentation', affix: true }
|
2019-04-01 09:07:16 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/guide',
|
|
|
|
component: 'layout/Layout',
|
|
|
|
redirect: '/guide/index',
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'index',
|
|
|
|
component: 'views/guide/index',
|
|
|
|
name: 'Guide',
|
2019-05-05 08:49:40 +00:00
|
|
|
meta: { title: 'Guide', icon: 'guide', noCache: true }
|
2019-04-01 09:07:16 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
|
|
|
|
export const asyncRoutes = [
|
|
|
|
{
|
|
|
|
path: '/permission',
|
|
|
|
component: 'layout/Layout',
|
|
|
|
redirect: '/permission/index',
|
|
|
|
alwaysShow: true,
|
|
|
|
meta: {
|
2019-05-05 08:49:40 +00:00
|
|
|
title: 'Permission',
|
2019-04-01 09:07:16 +00:00
|
|
|
icon: 'lock',
|
|
|
|
roles: ['admin', 'editor']
|
|
|
|
},
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'page',
|
|
|
|
component: 'views/permission/page',
|
|
|
|
name: 'PagePermission',
|
|
|
|
meta: {
|
2019-05-05 08:49:40 +00:00
|
|
|
title: 'Page Permission',
|
2019-04-01 09:07:16 +00:00
|
|
|
roles: ['admin']
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'directive',
|
|
|
|
component: 'views/permission/directive',
|
|
|
|
name: 'DirectivePermission',
|
|
|
|
meta: {
|
2019-05-05 08:49:40 +00:00
|
|
|
title: 'Directive Permission'
|
2019-04-01 09:07:16 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'role',
|
|
|
|
component: 'views/permission/role',
|
|
|
|
name: 'RolePermission',
|
|
|
|
meta: {
|
2019-05-05 08:49:40 +00:00
|
|
|
title: 'Role Permission',
|
2019-04-01 09:07:16 +00:00
|
|
|
roles: ['admin']
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
path: '/icon',
|
|
|
|
component: 'layout/Layout',
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'index',
|
2019-04-17 03:45:12 +00:00
|
|
|
component: 'views/icons/index',
|
2019-04-01 09:07:16 +00:00
|
|
|
name: 'Icons',
|
2019-05-05 08:49:40 +00:00
|
|
|
meta: { title: 'Icons', icon: 'icon', noCache: true }
|
2019-04-01 09:07:16 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
path: '/components',
|
|
|
|
component: 'layout/Layout',
|
2019-04-16 05:51:14 +00:00
|
|
|
redirect: 'noRedirect',
|
2019-04-01 09:07:16 +00:00
|
|
|
name: 'ComponentDemo',
|
|
|
|
meta: {
|
2019-05-05 08:49:40 +00:00
|
|
|
title: 'Components',
|
2019-04-01 09:07:16 +00:00
|
|
|
icon: 'component'
|
|
|
|
},
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'tinymce',
|
|
|
|
component: 'views/components-demo/tinymce',
|
|
|
|
name: 'TinymceDemo',
|
2019-05-05 08:49:40 +00:00
|
|
|
meta: { title: 'Tinymce' }
|
2019-04-01 09:07:16 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'markdown',
|
|
|
|
component: 'views/components-demo/markdown',
|
|
|
|
name: 'MarkdownDemo',
|
2019-05-05 08:49:40 +00:00
|
|
|
meta: { title: 'Markdown' }
|
2019-04-01 09:07:16 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'json-editor',
|
2019-04-12 09:13:27 +00:00
|
|
|
component: 'views/components-demo/json-editor',
|
2019-04-01 09:07:16 +00:00
|
|
|
name: 'JsonEditorDemo',
|
2019-05-05 08:49:40 +00:00
|
|
|
meta: { title: 'Json Editor' }
|
2019-04-01 09:07:16 +00:00
|
|
|
},
|
|
|
|
{
|
2019-04-12 09:13:27 +00:00
|
|
|
path: 'split-pane',
|
|
|
|
component: 'views/components-demo/split-pane',
|
2019-04-01 09:07:16 +00:00
|
|
|
name: 'SplitpaneDemo',
|
2019-05-05 08:49:40 +00:00
|
|
|
meta: { title: 'SplitPane' }
|
2019-04-01 09:07:16 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'avatar-upload',
|
2019-04-12 09:13:27 +00:00
|
|
|
component: 'views/components-demo/avatar-upload',
|
2019-04-01 09:07:16 +00:00
|
|
|
name: 'AvatarUploadDemo',
|
2019-05-05 08:49:40 +00:00
|
|
|
meta: { title: 'Avatar Upload' }
|
2019-04-01 09:07:16 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'dropzone',
|
|
|
|
component: 'views/components-demo/dropzone',
|
|
|
|
name: 'DropzoneDemo',
|
2019-05-05 08:49:40 +00:00
|
|
|
meta: { title: 'Dropzone' }
|
2019-04-01 09:07:16 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'sticky',
|
|
|
|
component: 'views/components-demo/sticky',
|
|
|
|
name: 'StickyDemo',
|
2019-05-05 08:49:40 +00:00
|
|
|
meta: { title: 'Sticky' }
|
2019-04-01 09:07:16 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'count-to',
|
2019-04-12 09:13:27 +00:00
|
|
|
component: 'views/components-demo/count-to',
|
2019-04-01 09:07:16 +00:00
|
|
|
name: 'CountToDemo',
|
2019-05-05 08:49:40 +00:00
|
|
|
meta: { title: 'Count To' }
|
2019-04-01 09:07:16 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'mixin',
|
|
|
|
component: 'views/components-demo/mixin',
|
|
|
|
name: 'ComponentMixinDemo',
|
|
|
|
meta: { title: 'componentMixin' }
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'back-to-top',
|
2019-04-12 09:13:27 +00:00
|
|
|
component: 'views/components-demo/back-to-top',
|
2019-04-01 09:07:16 +00:00
|
|
|
name: 'BackToTopDemo',
|
2019-05-05 08:49:40 +00:00
|
|
|
meta: { title: 'Back To Top' }
|
2019-04-01 09:07:16 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'drag-dialog',
|
2019-04-12 09:13:27 +00:00
|
|
|
component: 'views/components-demo/drag-dialog',
|
2019-04-01 09:07:16 +00:00
|
|
|
name: 'DragDialogDemo',
|
2019-05-05 08:49:40 +00:00
|
|
|
meta: { title: 'Drag Dialog' }
|
2019-04-01 09:07:16 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'drag-select',
|
2019-04-12 09:13:27 +00:00
|
|
|
component: 'views/components-demo/drag-select',
|
2019-04-01 09:07:16 +00:00
|
|
|
name: 'DragSelectDemo',
|
2019-05-05 08:49:40 +00:00
|
|
|
meta: { title: 'Drag Select' }
|
2019-04-01 09:07:16 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'dnd-list',
|
2019-04-12 09:13:27 +00:00
|
|
|
component: 'views/components-demo/dnd-list',
|
2019-04-01 09:07:16 +00:00
|
|
|
name: 'DndListDemo',
|
2019-05-05 08:49:40 +00:00
|
|
|
meta: { title: 'Dnd List' }
|
2019-04-01 09:07:16 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'drag-kanban',
|
2019-04-12 09:13:27 +00:00
|
|
|
component: 'views/components-demo/drag-kanban',
|
2019-04-01 09:07:16 +00:00
|
|
|
name: 'DragKanbanDemo',
|
2019-05-05 08:49:40 +00:00
|
|
|
meta: { title: 'Drag Kanban' }
|
2019-04-01 09:07:16 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/charts',
|
|
|
|
component: 'layout/Layout',
|
2019-04-16 05:51:14 +00:00
|
|
|
redirect: 'noRedirect',
|
2019-04-01 09:07:16 +00:00
|
|
|
name: 'Charts',
|
|
|
|
meta: {
|
2019-05-05 08:49:40 +00:00
|
|
|
title: 'Charts',
|
2019-04-01 09:07:16 +00:00
|
|
|
icon: 'chart'
|
|
|
|
},
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'keyboard',
|
|
|
|
component: 'views/charts/keyboard',
|
|
|
|
name: 'KeyboardChart',
|
2019-05-05 08:49:40 +00:00
|
|
|
meta: { title: 'Keyboard Chart', noCache: true }
|
2019-04-01 09:07:16 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'line',
|
|
|
|
component: 'views/charts/line',
|
|
|
|
name: 'LineChart',
|
2019-05-05 08:49:40 +00:00
|
|
|
meta: { title: 'Line Chart', noCache: true }
|
2019-04-01 09:07:16 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'mixchart',
|
|
|
|
component: 'views/charts/mixChart',
|
|
|
|
name: 'MixChart',
|
2019-05-05 08:49:40 +00:00
|
|
|
meta: { title: 'Mix Chart', noCache: true }
|
2019-04-01 09:07:16 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/nested',
|
|
|
|
component: 'layout/Layout',
|
|
|
|
redirect: '/nested/menu1/menu1-1',
|
|
|
|
name: 'Nested',
|
|
|
|
meta: {
|
2019-05-05 08:49:40 +00:00
|
|
|
title: 'Nested',
|
2019-04-01 09:07:16 +00:00
|
|
|
icon: 'nested'
|
|
|
|
},
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'menu1',
|
|
|
|
component: 'views/nested/menu1/index',
|
|
|
|
name: 'Menu1',
|
2019-05-05 08:49:40 +00:00
|
|
|
meta: { title: 'Menu1' },
|
2019-04-01 09:07:16 +00:00
|
|
|
redirect: '/nested/menu1/menu1-1',
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'menu1-1',
|
|
|
|
component: 'views/nested/menu1/menu1-1',
|
|
|
|
name: 'Menu1-1',
|
2019-05-05 08:49:40 +00:00
|
|
|
meta: { title: 'Menu1-1' }
|
2019-04-01 09:07:16 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'menu1-2',
|
|
|
|
component: 'views/nested/menu1/menu1-2',
|
|
|
|
name: 'Menu1-2',
|
|
|
|
redirect: '/nested/menu1/menu1-2/menu1-2-1',
|
2019-05-05 08:49:40 +00:00
|
|
|
meta: { title: 'Menu1-2' },
|
2019-04-01 09:07:16 +00:00
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'menu1-2-1',
|
|
|
|
component: 'views/nested/menu1/menu1-2/menu1-2-1',
|
|
|
|
name: 'Menu1-2-1',
|
2019-05-05 08:49:40 +00:00
|
|
|
meta: { title: 'Menu1-2-1' }
|
2019-04-01 09:07:16 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'menu1-2-2',
|
|
|
|
component: 'views/nested/menu1/menu1-2/menu1-2-2',
|
|
|
|
name: 'Menu1-2-2',
|
2019-05-05 08:49:40 +00:00
|
|
|
meta: { title: 'Menu1-2-2' }
|
2019-04-01 09:07:16 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'menu1-3',
|
|
|
|
component: 'views/nested/menu1/menu1-3',
|
|
|
|
name: 'Menu1-3',
|
2019-05-05 08:49:40 +00:00
|
|
|
meta: { title: 'Menu1-3' }
|
2019-04-01 09:07:16 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'menu2',
|
|
|
|
name: 'Menu2',
|
|
|
|
component: 'views/nested/menu2/index',
|
2019-05-05 08:49:40 +00:00
|
|
|
meta: { title: 'Menu2' }
|
2019-04-01 09:07:16 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
path: '/example',
|
|
|
|
component: 'layout/Layout',
|
|
|
|
redirect: '/example/list',
|
|
|
|
name: 'Example',
|
|
|
|
meta: {
|
2019-05-05 08:49:40 +00:00
|
|
|
title: 'Example',
|
2019-04-01 09:07:16 +00:00
|
|
|
icon: 'example'
|
|
|
|
},
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'create',
|
|
|
|
component: 'views/example/create',
|
|
|
|
name: 'CreateArticle',
|
2019-05-05 08:49:40 +00:00
|
|
|
meta: { title: 'Create Article', icon: 'edit' }
|
2019-04-01 09:07:16 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'edit/:id(\\d+)',
|
|
|
|
component: 'views/example/edit',
|
|
|
|
name: 'EditArticle',
|
2019-05-05 08:49:40 +00:00
|
|
|
meta: { title: 'Edit Article', noCache: true },
|
2019-04-01 09:07:16 +00:00
|
|
|
hidden: true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'list',
|
|
|
|
component: 'views/example/list',
|
|
|
|
name: 'ArticleList',
|
2019-05-05 08:49:40 +00:00
|
|
|
meta: { title: 'Article List', icon: 'list' }
|
2019-04-01 09:07:16 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
path: '/tab',
|
|
|
|
component: 'layout/Layout',
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'index',
|
|
|
|
component: 'views/tab/index',
|
|
|
|
name: 'Tab',
|
2019-05-05 08:49:40 +00:00
|
|
|
meta: { title: 'Tab', icon: 'tab' }
|
2019-04-01 09:07:16 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
path: '/error',
|
|
|
|
component: 'layout/Layout',
|
2019-04-16 05:51:14 +00:00
|
|
|
redirect: 'noRedirect',
|
2019-04-01 09:07:16 +00:00
|
|
|
name: 'ErrorPages',
|
|
|
|
meta: {
|
2019-05-05 08:49:40 +00:00
|
|
|
title: 'Error Pages',
|
2019-04-01 09:07:16 +00:00
|
|
|
icon: '404'
|
|
|
|
},
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: '401',
|
2019-04-12 09:13:27 +00:00
|
|
|
component: 'views/error-page/401',
|
2019-04-01 09:07:16 +00:00
|
|
|
name: 'Page401',
|
2019-05-05 08:49:40 +00:00
|
|
|
meta: { title: 'Page 401', noCache: true }
|
2019-04-01 09:07:16 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '404',
|
2019-04-12 09:13:27 +00:00
|
|
|
component: 'views/error-page/404',
|
2019-04-01 09:07:16 +00:00
|
|
|
name: 'Page404',
|
2019-05-05 08:49:40 +00:00
|
|
|
meta: { title: 'Page 404', noCache: true }
|
2019-04-01 09:07:16 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
path: '/error-log',
|
|
|
|
component: 'layout/Layout',
|
2019-04-16 05:51:14 +00:00
|
|
|
redirect: 'noRedirect',
|
2019-04-01 09:07:16 +00:00
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'log',
|
2019-04-12 09:13:27 +00:00
|
|
|
component: 'views/error-log/index',
|
2019-04-01 09:07:16 +00:00
|
|
|
name: 'ErrorLog',
|
2019-05-05 08:49:40 +00:00
|
|
|
meta: { title: 'Error Log', icon: 'bug' }
|
2019-04-01 09:07:16 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
path: '/excel',
|
|
|
|
component: 'layout/Layout',
|
|
|
|
redirect: '/excel/export-excel',
|
|
|
|
name: 'Excel',
|
|
|
|
meta: {
|
2019-05-05 08:49:40 +00:00
|
|
|
title: 'Excel',
|
2019-04-01 09:07:16 +00:00
|
|
|
icon: 'excel'
|
|
|
|
},
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'export-excel',
|
2019-04-12 09:13:27 +00:00
|
|
|
component: 'views/excel/export-excel',
|
2019-04-01 09:07:16 +00:00
|
|
|
name: 'ExportExcel',
|
2019-05-05 08:49:40 +00:00
|
|
|
meta: { title: 'Export Excel' }
|
2019-04-01 09:07:16 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'export-selected-excel',
|
2019-04-12 09:13:27 +00:00
|
|
|
component: 'views/excel/select-excel',
|
2019-04-01 09:07:16 +00:00
|
|
|
name: 'SelectExcel',
|
2019-05-05 08:49:40 +00:00
|
|
|
meta: { title: 'Select Excel' }
|
2019-04-01 09:07:16 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'export-merge-header',
|
2019-04-12 09:13:27 +00:00
|
|
|
component: 'views/excel/merge-header',
|
2019-04-01 09:07:16 +00:00
|
|
|
name: 'MergeHeader',
|
2019-05-05 08:49:40 +00:00
|
|
|
meta: { title: 'Merge Header' }
|
2019-04-01 09:07:16 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'upload-excel',
|
2019-04-12 09:13:27 +00:00
|
|
|
component: 'views/excel/upload-excel',
|
2019-04-01 09:07:16 +00:00
|
|
|
name: 'UploadExcel',
|
2019-05-05 08:49:40 +00:00
|
|
|
meta: { title: 'Upload Excel' }
|
2019-04-01 09:07:16 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
path: '/zip',
|
|
|
|
component: 'layout/Layout',
|
|
|
|
redirect: '/zip/download',
|
|
|
|
alwaysShow: true,
|
2019-05-05 08:49:40 +00:00
|
|
|
meta: { title: 'Zip', icon: 'zip' },
|
2019-04-01 09:07:16 +00:00
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'download',
|
|
|
|
component: 'views/zip/index',
|
|
|
|
name: 'ExportZip',
|
2019-05-05 08:49:40 +00:00
|
|
|
meta: { title: 'Export Zip' }
|
2019-04-01 09:07:16 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
path: '/pdf',
|
|
|
|
component: 'layout/Layout',
|
|
|
|
redirect: '/pdf/index',
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'index',
|
|
|
|
component: 'views/pdf/index',
|
|
|
|
name: 'PDF',
|
2019-05-05 08:49:40 +00:00
|
|
|
meta: { title: 'PDF', icon: 'pdf' }
|
2019-04-01 09:07:16 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/pdf/download',
|
|
|
|
component: 'views/pdf/download',
|
|
|
|
hidden: true
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
path: '/theme',
|
|
|
|
component: 'layout/Layout',
|
2019-04-16 05:51:14 +00:00
|
|
|
redirect: 'noRedirect',
|
2019-04-01 09:07:16 +00:00
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'index',
|
|
|
|
component: 'views/theme/index',
|
|
|
|
name: 'Theme',
|
2019-05-05 08:49:40 +00:00
|
|
|
meta: { title: 'Theme', icon: 'theme' }
|
2019-04-01 09:07:16 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
path: '/clipboard',
|
|
|
|
component: 'layout/Layout',
|
2019-04-16 05:51:14 +00:00
|
|
|
redirect: 'noRedirect',
|
2019-04-01 09:07:16 +00:00
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'index',
|
|
|
|
component: 'views/clipboard/index',
|
|
|
|
name: 'ClipboardDemo',
|
2019-05-05 08:49:40 +00:00
|
|
|
meta: { title: 'Clipboard Demo', icon: 'clipboard' }
|
2019-04-01 09:07:16 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
path: '/i18n',
|
|
|
|
component: 'layout/Layout',
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'index',
|
|
|
|
component: 'views/i18n-demo/index',
|
|
|
|
name: 'I18n',
|
2019-05-05 08:49:40 +00:00
|
|
|
meta: { title: 'I18n', icon: 'international' }
|
2019-04-01 09:07:16 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
path: 'external-link',
|
|
|
|
component: 'layout/Layout',
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'https://github.com/PanJiaChen/vue-element-admin',
|
2019-05-05 08:49:40 +00:00
|
|
|
meta: { title: 'External Link', icon: 'link' }
|
2019-04-01 09:07:16 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
{ path: '*', redirect: '/404', hidden: true }
|
|
|
|
]
|