# disabled useless components
This commit is contained in:
parent
c5ffdcf89e
commit
345dbec5e3
|
@ -40,17 +40,17 @@ export const constantRouterMap = [
|
||||||
meta: { title: 'dashboard', icon: 'dashboard', noCache: true }
|
meta: { title: 'dashboard', icon: 'dashboard', noCache: true }
|
||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
path: '/documentation',
|
// path: '/documentation',
|
||||||
component: Layout,
|
// component: Layout,
|
||||||
redirect: '/documentation/index',
|
// redirect: '/documentation/index',
|
||||||
children: [{
|
// children: [{
|
||||||
path: 'index',
|
// path: 'index',
|
||||||
component: () => import('@/views/documentation/index'),
|
// component: () => import('@/views/documentation/index'),
|
||||||
name: 'documentation',
|
// name: 'documentation',
|
||||||
meta: { title: 'documentation', icon: 'documentation', noCache: true }
|
// meta: { title: 'documentation', icon: 'documentation', noCache: true }
|
||||||
}]
|
// }]
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
path: '/counter',
|
path: '/counter',
|
||||||
component: Layout,
|
component: Layout,
|
||||||
|
@ -65,18 +65,18 @@ export const constantRouterMap = [
|
||||||
{ path: 'device', component: () => import('@/views/counter/device'), name: 'device', meta: { title: 'device' }},
|
{ path: 'device', component: () => import('@/views/counter/device'), name: 'device', meta: { title: 'device' }},
|
||||||
{ path: 'count', component: () => import('@/views/counter/count'), name: 'count', meta: { title: 'count' }}
|
{ path: 'count', component: () => import('@/views/counter/count'), name: 'count', meta: { title: 'count' }}
|
||||||
]
|
]
|
||||||
},
|
|
||||||
{
|
|
||||||
path: '/guide',
|
|
||||||
component: Layout,
|
|
||||||
redirect: '/guide/index',
|
|
||||||
children: [{
|
|
||||||
path: 'index',
|
|
||||||
component: () => import('@/views/guide/index'),
|
|
||||||
name: 'guide',
|
|
||||||
meta: { title: 'guide', icon: 'guide', noCache: true }
|
|
||||||
}]
|
|
||||||
}
|
}
|
||||||
|
// {
|
||||||
|
// path: '/guide',
|
||||||
|
// component: Layout,
|
||||||
|
// redirect: '/guide/index',
|
||||||
|
// children: [{
|
||||||
|
// path: 'index',
|
||||||
|
// component: () => import('@/views/guide/index'),
|
||||||
|
// name: 'guide',
|
||||||
|
// meta: { title: 'guide', icon: 'guide', noCache: true }
|
||||||
|
// }]
|
||||||
|
// }
|
||||||
]
|
]
|
||||||
|
|
||||||
export default new Router({
|
export default new Router({
|
||||||
|
@ -126,193 +126,193 @@ export const asyncRouterMap = [
|
||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
// {
|
||||||
path: '/components',
|
// path: '/components',
|
||||||
component: Layout,
|
// component: Layout,
|
||||||
redirect: 'noredirect',
|
// redirect: 'noredirect',
|
||||||
name: 'component-demo',
|
// name: 'component-demo',
|
||||||
meta: {
|
// meta: {
|
||||||
title: 'components',
|
// title: 'components',
|
||||||
icon: 'component'
|
// icon: 'component'
|
||||||
},
|
// },
|
||||||
children: [
|
// children: [
|
||||||
{ path: 'tinymce', component: () => import('@/views/components-demo/tinymce'), name: 'tinymce-demo', meta: { title: 'tinymce' }},
|
// { path: 'tinymce', component: () => import('@/views/components-demo/tinymce'), name: 'tinymce-demo', meta: { title: 'tinymce' }},
|
||||||
{ path: 'markdown', component: () => import('@/views/components-demo/markdown'), name: 'markdown-demo', meta: { title: 'markdown' }},
|
// { path: 'markdown', component: () => import('@/views/components-demo/markdown'), name: 'markdown-demo', meta: { title: 'markdown' }},
|
||||||
{ path: 'json-editor', component: () => import('@/views/components-demo/jsonEditor'), name: 'jsonEditor-demo', meta: { title: 'jsonEditor' }},
|
// { path: 'json-editor', component: () => import('@/views/components-demo/jsonEditor'), name: 'jsonEditor-demo', meta: { title: 'jsonEditor' }},
|
||||||
{ path: 'splitpane', component: () => import('@/views/components-demo/splitpane'), name: 'splitpane-demo', meta: { title: 'splitPane' }},
|
// { path: 'splitpane', component: () => import('@/views/components-demo/splitpane'), name: 'splitpane-demo', meta: { title: 'splitPane' }},
|
||||||
{ path: 'avatar-upload', component: () => import('@/views/components-demo/avatarUpload'), name: 'avatarUpload-demo', meta: { title: 'avatarUpload' }},
|
// { path: 'avatar-upload', component: () => import('@/views/components-demo/avatarUpload'), name: 'avatarUpload-demo', meta: { title: 'avatarUpload' }},
|
||||||
{ path: 'dropzone', component: () => import('@/views/components-demo/dropzone'), name: 'dropzone-demo', meta: { title: 'dropzone' }},
|
// { path: 'dropzone', component: () => import('@/views/components-demo/dropzone'), name: 'dropzone-demo', meta: { title: 'dropzone' }},
|
||||||
{ path: 'sticky', component: () => import('@/views/components-demo/sticky'), name: 'sticky-demo', meta: { title: 'sticky' }},
|
// { path: 'sticky', component: () => import('@/views/components-demo/sticky'), name: 'sticky-demo', meta: { title: 'sticky' }},
|
||||||
{ path: 'count-to', component: () => import('@/views/components-demo/countTo'), name: 'countTo-demo', meta: { title: 'countTo' }},
|
// { path: 'count-to', component: () => import('@/views/components-demo/countTo'), name: 'countTo-demo', meta: { title: 'countTo' }},
|
||||||
{ path: 'mixin', component: () => import('@/views/components-demo/mixin'), name: 'componentMixin-demo', meta: { title: 'componentMixin' }},
|
// { path: 'mixin', component: () => import('@/views/components-demo/mixin'), name: 'componentMixin-demo', meta: { title: 'componentMixin' }},
|
||||||
{ path: 'back-to-top', component: () => import('@/views/components-demo/backToTop'), name: 'backToTop-demo', meta: { title: 'backToTop' }},
|
// { path: 'back-to-top', component: () => import('@/views/components-demo/backToTop'), name: 'backToTop-demo', meta: { title: 'backToTop' }},
|
||||||
{ path: 'drag-dialog', component: () => import('@/views/components-demo/dragDialog'), name: 'dragDialog-demo', meta: { title: 'dragDialog' }},
|
// { path: 'drag-dialog', component: () => import('@/views/components-demo/dragDialog'), name: 'dragDialog-demo', meta: { title: 'dragDialog' }},
|
||||||
{ path: 'dnd-list', component: () => import('@/views/components-demo/dndList'), name: 'dndList-demo', meta: { title: 'dndList' }},
|
// { path: 'dnd-list', component: () => import('@/views/components-demo/dndList'), name: 'dndList-demo', meta: { title: 'dndList' }},
|
||||||
{ path: 'drag-kanban', component: () => import('@/views/components-demo/dragKanban'), name: 'dragKanban-demo', meta: { title: 'dragKanban' }}
|
// { path: 'drag-kanban', component: () => import('@/views/components-demo/dragKanban'), name: 'dragKanban-demo', meta: { title: 'dragKanban' }}
|
||||||
]
|
// ]
|
||||||
},
|
// },
|
||||||
|
|
||||||
{
|
// {
|
||||||
path: '/charts',
|
// path: '/charts',
|
||||||
component: Layout,
|
// component: Layout,
|
||||||
redirect: 'noredirect',
|
// redirect: 'noredirect',
|
||||||
name: 'charts',
|
// name: 'charts',
|
||||||
meta: {
|
// meta: {
|
||||||
title: 'charts',
|
// title: 'charts',
|
||||||
icon: 'chart'
|
// icon: 'chart'
|
||||||
},
|
// },
|
||||||
children: [
|
// children: [
|
||||||
{ path: 'keyboard', component: () => import('@/views/charts/keyboard'), name: 'keyboardChart', meta: { title: 'keyboardChart', noCache: true }},
|
// { path: 'keyboard', component: () => import('@/views/charts/keyboard'), name: 'keyboardChart', meta: { title: 'keyboardChart', noCache: true }},
|
||||||
{ path: 'line', component: () => import('@/views/charts/line'), name: 'lineChart', meta: { title: 'lineChart', noCache: true }},
|
// { path: 'line', component: () => import('@/views/charts/line'), name: 'lineChart', meta: { title: 'lineChart', noCache: true }},
|
||||||
{ path: 'mixchart', component: () => import('@/views/charts/mixChart'), name: 'mixChart', meta: { title: 'mixChart', noCache: true }}
|
// { path: 'mixchart', component: () => import('@/views/charts/mixChart'), name: 'mixChart', meta: { title: 'mixChart', noCache: true }}
|
||||||
]
|
// ]
|
||||||
},
|
// },
|
||||||
|
|
||||||
{
|
// {
|
||||||
path: '/tab',
|
// path: '/tab',
|
||||||
component: Layout,
|
// component: Layout,
|
||||||
children: [{
|
// children: [{
|
||||||
path: 'index',
|
// path: 'index',
|
||||||
component: () => import('@/views/tab/index'),
|
// component: () => import('@/views/tab/index'),
|
||||||
name: 'tab',
|
// name: 'tab',
|
||||||
meta: { title: 'tab', icon: 'tab' }
|
// meta: { title: 'tab', icon: 'tab' }
|
||||||
}]
|
// }]
|
||||||
},
|
// },
|
||||||
|
|
||||||
{
|
// {
|
||||||
path: '/table',
|
// path: '/table',
|
||||||
component: Layout,
|
// component: Layout,
|
||||||
redirect: '/table/complex-table',
|
// redirect: '/table/complex-table',
|
||||||
name: 'table',
|
// name: 'table',
|
||||||
meta: {
|
// meta: {
|
||||||
title: 'Table',
|
// title: 'Table',
|
||||||
icon: 'table'
|
// icon: 'table'
|
||||||
},
|
// },
|
||||||
children: [
|
// children: [
|
||||||
{ path: 'dynamic-table', component: () => import('@/views/table/dynamicTable/index'), name: 'dynamicTable', meta: { title: 'dynamicTable' }},
|
// { path: 'dynamic-table', component: () => import('@/views/table/dynamicTable/index'), name: 'dynamicTable', meta: { title: 'dynamicTable' }},
|
||||||
{ path: 'drag-table', component: () => import('@/views/table/dragTable'), name: 'dragTable', meta: { title: 'dragTable' }},
|
// { path: 'drag-table', component: () => import('@/views/table/dragTable'), name: 'dragTable', meta: { title: 'dragTable' }},
|
||||||
{ path: 'inline-edit-table', component: () => import('@/views/table/inlineEditTable'), name: 'inlineEditTable', meta: { title: 'inlineEditTable' }},
|
// { path: 'inline-edit-table', component: () => import('@/views/table/inlineEditTable'), name: 'inlineEditTable', meta: { title: 'inlineEditTable' }},
|
||||||
{ path: 'tree-table', component: () => import('@/views/table/treeTable/treeTable'), name: 'treeTableDemo', meta: { title: 'treeTable' }},
|
// { path: 'tree-table', component: () => import('@/views/table/treeTable/treeTable'), name: 'treeTableDemo', meta: { title: 'treeTable' }},
|
||||||
{ path: 'custom-tree-table', component: () => import('@/views/table/treeTable/customTreeTable'), name: 'customTreeTableDemo', meta: { title: 'customTreeTable' }},
|
// { path: 'custom-tree-table', component: () => import('@/views/table/treeTable/customTreeTable'), name: 'customTreeTableDemo', meta: { title: 'customTreeTable' }},
|
||||||
{ path: 'complex-table', component: () => import('@/views/table/complexTable'), name: 'complexTable', meta: { title: 'complexTable' }}
|
// { path: 'complex-table', component: () => import('@/views/table/complexTable'), name: 'complexTable', meta: { title: 'complexTable' }}
|
||||||
]
|
// ]
|
||||||
},
|
// },
|
||||||
|
|
||||||
{
|
// {
|
||||||
path: '/example',
|
// path: '/example',
|
||||||
component: Layout,
|
// component: Layout,
|
||||||
redirect: '/example/list',
|
// redirect: '/example/list',
|
||||||
name: 'example',
|
// name: 'example',
|
||||||
meta: {
|
// meta: {
|
||||||
title: 'example',
|
// title: 'example',
|
||||||
icon: 'example'
|
// icon: 'example'
|
||||||
},
|
// },
|
||||||
children: [
|
// children: [
|
||||||
{ path: 'create', component: () => import('@/views/example/create'), name: 'createArticle', meta: { title: 'createArticle', icon: 'edit' }},
|
// { path: 'create', component: () => import('@/views/example/create'), name: 'createArticle', meta: { title: 'createArticle', icon: 'edit' }},
|
||||||
{ path: 'edit/:id(\\d+)', component: () => import('@/views/example/edit'), name: 'editArticle', meta: { title: 'editArticle', noCache: true }, hidden: true },
|
// { path: 'edit/:id(\\d+)', component: () => import('@/views/example/edit'), name: 'editArticle', meta: { title: 'editArticle', noCache: true }, hidden: true },
|
||||||
{ path: 'list', component: () => import('@/views/example/list'), name: 'articleList', meta: { title: 'articleList', icon: 'list' }}
|
// { path: 'list', component: () => import('@/views/example/list'), name: 'articleList', meta: { title: 'articleList', icon: 'list' }}
|
||||||
]
|
// ]
|
||||||
},
|
// },
|
||||||
|
|
||||||
{
|
// {
|
||||||
path: '/nested',
|
// path: '/nested',
|
||||||
component: Layout,
|
// component: Layout,
|
||||||
redirect: '/nested/bar/profile',
|
// redirect: '/nested/bar/profile',
|
||||||
name: 'nested',
|
// name: 'nested',
|
||||||
meta: {
|
// meta: {
|
||||||
title: 'nested',
|
// title: 'nested',
|
||||||
icon: 'nested'
|
// icon: 'nested'
|
||||||
},
|
// },
|
||||||
children: [
|
// children: [
|
||||||
{
|
// {
|
||||||
path: '/nested/bar', // Must write the full path
|
// path: '/nested/bar', // Must write the full path
|
||||||
component: () => import('@/views/nested/bar/index'), // Parent router-view
|
// component: () => import('@/views/nested/bar/index'), // Parent router-view
|
||||||
name: 'bar',
|
// name: 'bar',
|
||||||
meta: { title: 'bar' },
|
// meta: { title: 'bar' },
|
||||||
children: [
|
// children: [
|
||||||
{
|
// {
|
||||||
path: 'profile',
|
// path: 'profile',
|
||||||
component: () => import('@/views/nested/bar/profile'),
|
// component: () => import('@/views/nested/bar/profile'),
|
||||||
name: 'bar-profile',
|
// name: 'bar-profile',
|
||||||
meta: { title: 'barProfile' }
|
// meta: { title: 'barProfile' }
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
path: 'posts',
|
// path: 'posts',
|
||||||
component: () => import('@/views/nested/bar/posts'),
|
// component: () => import('@/views/nested/bar/posts'),
|
||||||
name: 'bar-posts',
|
// name: 'bar-posts',
|
||||||
meta: { title: 'barPosts' }
|
// meta: { title: 'barPosts' }
|
||||||
}
|
// }
|
||||||
]
|
// ]
|
||||||
}
|
// }
|
||||||
]
|
// ]
|
||||||
},
|
// },
|
||||||
|
|
||||||
{
|
// {
|
||||||
path: '/error',
|
// path: '/error',
|
||||||
component: Layout,
|
// component: Layout,
|
||||||
redirect: 'noredirect',
|
// redirect: 'noredirect',
|
||||||
name: 'errorPages',
|
// name: 'errorPages',
|
||||||
meta: {
|
// meta: {
|
||||||
title: 'errorPages',
|
// title: 'errorPages',
|
||||||
icon: '404'
|
// icon: '404'
|
||||||
},
|
// },
|
||||||
children: [
|
// children: [
|
||||||
{ path: '401', component: () => import('@/views/errorPage/401'), name: 'page401', meta: { title: 'page401', noCache: true }},
|
// { path: '401', component: () => import('@/views/errorPage/401'), name: 'page401', meta: { title: 'page401', noCache: true }},
|
||||||
{ path: '404', component: () => import('@/views/errorPage/404'), name: 'page404', meta: { title: 'page404', noCache: true }}
|
// { path: '404', component: () => import('@/views/errorPage/404'), name: 'page404', meta: { title: 'page404', noCache: true }}
|
||||||
]
|
// ]
|
||||||
},
|
// },
|
||||||
|
|
||||||
{
|
// {
|
||||||
path: '/error-log',
|
// path: '/error-log',
|
||||||
component: Layout,
|
// component: Layout,
|
||||||
redirect: 'noredirect',
|
// redirect: 'noredirect',
|
||||||
children: [{ path: 'log', component: () => import('@/views/errorLog/index'), name: 'errorLog', meta: { title: 'errorLog', icon: 'bug' }}]
|
// children: [{ path: 'log', component: () => import('@/views/errorLog/index'), name: 'errorLog', meta: { title: 'errorLog', icon: 'bug' }}]
|
||||||
},
|
// },
|
||||||
|
|
||||||
{
|
// {
|
||||||
path: '/excel',
|
// path: '/excel',
|
||||||
component: Layout,
|
// component: Layout,
|
||||||
redirect: '/excel/export-excel',
|
// redirect: '/excel/export-excel',
|
||||||
name: 'excel',
|
// name: 'excel',
|
||||||
meta: {
|
// meta: {
|
||||||
title: 'excel',
|
// title: 'excel',
|
||||||
icon: 'excel'
|
// icon: 'excel'
|
||||||
},
|
// },
|
||||||
children: [
|
// children: [
|
||||||
{ path: 'export-excel', component: () => import('@/views/excel/exportExcel'), name: 'exportExcel', meta: { title: 'exportExcel' }},
|
// { path: 'export-excel', component: () => import('@/views/excel/exportExcel'), name: 'exportExcel', meta: { title: 'exportExcel' }},
|
||||||
{ path: 'export-selected-excel', component: () => import('@/views/excel/selectExcel'), name: 'selectExcel', meta: { title: 'selectExcel' }},
|
// { path: 'export-selected-excel', component: () => import('@/views/excel/selectExcel'), name: 'selectExcel', meta: { title: 'selectExcel' }},
|
||||||
{ path: 'upload-excel', component: () => import('@/views/excel/uploadExcel'), name: 'uploadExcel', meta: { title: 'uploadExcel' }}
|
// { path: 'upload-excel', component: () => import('@/views/excel/uploadExcel'), name: 'uploadExcel', meta: { title: 'uploadExcel' }}
|
||||||
]
|
// ]
|
||||||
},
|
// },
|
||||||
|
|
||||||
{
|
// {
|
||||||
path: '/zip',
|
// path: '/zip',
|
||||||
component: Layout,
|
// component: Layout,
|
||||||
redirect: '/zip/download',
|
// redirect: '/zip/download',
|
||||||
alwaysShow: true,
|
// alwaysShow: true,
|
||||||
meta: { title: 'zip', icon: 'zip' },
|
// meta: { title: 'zip', icon: 'zip' },
|
||||||
children: [{ path: 'download', component: () => import('@/views/zip/index'), name: 'exportZip', meta: { title: 'exportZip' }}]
|
// children: [{ path: 'download', component: () => import('@/views/zip/index'), name: 'exportZip', meta: { title: 'exportZip' }}]
|
||||||
},
|
// },
|
||||||
|
|
||||||
{
|
// {
|
||||||
path: '/theme',
|
// path: '/theme',
|
||||||
component: Layout,
|
// component: Layout,
|
||||||
redirect: 'noredirect',
|
// redirect: 'noredirect',
|
||||||
children: [{ path: 'index', component: () => import('@/views/theme/index'), name: 'theme', meta: { title: 'theme', icon: 'theme' }}]
|
// children: [{ path: 'index', component: () => import('@/views/theme/index'), name: 'theme', meta: { title: 'theme', icon: 'theme' }}]
|
||||||
},
|
// },
|
||||||
|
|
||||||
{
|
// {
|
||||||
path: '/clipboard',
|
// path: '/clipboard',
|
||||||
component: Layout,
|
// component: Layout,
|
||||||
redirect: 'noredirect',
|
// redirect: 'noredirect',
|
||||||
children: [{ path: 'index', component: () => import('@/views/clipboard/index'), name: 'clipboardDemo', meta: { title: 'clipboardDemo', icon: 'clipboard' }}]
|
// children: [{ path: 'index', component: () => import('@/views/clipboard/index'), name: 'clipboardDemo', meta: { title: 'clipboardDemo', icon: 'clipboard' }}]
|
||||||
},
|
// },
|
||||||
|
|
||||||
{
|
// {
|
||||||
path: '/i18n',
|
// path: '/i18n',
|
||||||
component: Layout,
|
// component: Layout,
|
||||||
children: [{ path: 'index', component: () => import('@/views/i18n-demo/index'), name: 'i18n', meta: { title: 'i18n', icon: 'international' }}]
|
// children: [{ path: 'index', component: () => import('@/views/i18n-demo/index'), name: 'i18n', meta: { title: 'i18n', icon: 'international' }}]
|
||||||
},
|
// },
|
||||||
|
|
||||||
{ path: '*', redirect: '/404', hidden: true }
|
{ path: '*', redirect: '/404', hidden: true }
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue