|
@@ -51,32 +51,9 @@ export const constantRoutes = [
|
|
|
path: 'dashboard',
|
|
|
name: 'Dashboard',
|
|
|
component: () => import('@/views/dashboard/index'),
|
|
|
- meta: { title: 'Dashboard', icon: 'dashboard' }
|
|
|
+ meta: { title: '首页', icon: 'dashboard' }
|
|
|
}]
|
|
|
},
|
|
|
-
|
|
|
- {
|
|
|
- path: '/example',
|
|
|
- component: Layout,
|
|
|
- redirect: '/example/table',
|
|
|
- name: 'Example',
|
|
|
- meta: { title: 'Example', icon: 'el-icon-s-help' },
|
|
|
- children: [
|
|
|
- {
|
|
|
- path: 'table',
|
|
|
- name: 'Table',
|
|
|
- component: () => import('@/views/table/index'),
|
|
|
- meta: { title: 'Table', icon: 'table' }
|
|
|
- },
|
|
|
- {
|
|
|
- path: 'tree',
|
|
|
- name: 'Tree',
|
|
|
- component: () => import('@/views/tree/index'),
|
|
|
- meta: { title: 'Tree', icon: 'tree' }
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
-
|
|
|
{
|
|
|
path: '/form',
|
|
|
component: Layout,
|
|
@@ -85,7 +62,8 @@ export const constantRoutes = [
|
|
|
path: 'index',
|
|
|
name: 'Form',
|
|
|
component: () => import('@/views/form/index'),
|
|
|
- meta: { title: 'Form', icon: 'form' }
|
|
|
+ meta: { title: 'Form', icon: 'form' },
|
|
|
+ hidden: true
|
|
|
}
|
|
|
]
|
|
|
},
|
|
@@ -133,7 +111,7 @@ export const constantRoutes = [
|
|
|
name: 'setting',
|
|
|
meta: {
|
|
|
title: '小程序设置',
|
|
|
- icon: 'el-icon-s-help'
|
|
|
+ icon: 'el-icon-setting'
|
|
|
},
|
|
|
children: [
|
|
|
{
|
|
@@ -219,7 +197,7 @@ export const constantRoutes = [
|
|
|
name: 'user',
|
|
|
meta: {
|
|
|
title: '用户',
|
|
|
- icon: 'el-icon-s-help'
|
|
|
+ icon: 'el-icon-user'
|
|
|
},
|
|
|
children: [
|
|
|
{
|
|
@@ -251,7 +229,7 @@ export const constantRoutes = [
|
|
|
name: 'article',
|
|
|
meta: {
|
|
|
title: '咨询信息',
|
|
|
- icon: 'el-icon-s-help'
|
|
|
+ icon: 'el-icon-reading'
|
|
|
},
|
|
|
children: [
|
|
|
{
|
|
@@ -306,76 +284,6 @@ export const constantRoutes = [
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
- {
|
|
|
- path: '/nested',
|
|
|
- component: Layout,
|
|
|
- redirect: '/nested/menu1',
|
|
|
- name: 'Nested',
|
|
|
- meta: {
|
|
|
- title: 'Nested',
|
|
|
- icon: 'nested'
|
|
|
- },
|
|
|
- children: [
|
|
|
- {
|
|
|
- path: 'menu1',
|
|
|
- component: () => import('@/views/nested/menu1/index'), // Parent router-view
|
|
|
- name: 'Menu1',
|
|
|
- meta: { title: 'Menu1' },
|
|
|
- children: [
|
|
|
- {
|
|
|
- path: 'menu1-1',
|
|
|
- component: () => import('@/views/nested/menu1/menu1-1'),
|
|
|
- name: 'Menu1-1',
|
|
|
- meta: { title: 'Menu1-1' }
|
|
|
- },
|
|
|
- {
|
|
|
- path: 'menu1-2',
|
|
|
- component: () => import('@/views/nested/menu1/menu1-2'),
|
|
|
- name: 'Menu1-2',
|
|
|
- meta: { title: 'Menu1-2' },
|
|
|
- children: [
|
|
|
- {
|
|
|
- path: 'menu1-2-1',
|
|
|
- component: () => import('@/views/nested/menu1/menu1-2/menu1-2-1'),
|
|
|
- name: 'Menu1-2-1',
|
|
|
- meta: { title: 'Menu1-2-1' }
|
|
|
- },
|
|
|
- {
|
|
|
- path: 'menu1-2-2',
|
|
|
- component: () => import('@/views/nested/menu1/menu1-2/menu1-2-2'),
|
|
|
- name: 'Menu1-2-2',
|
|
|
- meta: { title: 'Menu1-2-2' }
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- {
|
|
|
- path: 'menu1-3',
|
|
|
- component: () => import('@/views/nested/menu1/menu1-3'),
|
|
|
- name: 'Menu1-3',
|
|
|
- meta: { title: 'Menu1-3' }
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- {
|
|
|
- path: 'menu2',
|
|
|
- component: () => import('@/views/nested/menu2/index'),
|
|
|
- name: 'Menu2',
|
|
|
- meta: { title: 'menu2' }
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
-
|
|
|
- {
|
|
|
- path: 'external-link',
|
|
|
- component: Layout,
|
|
|
- children: [
|
|
|
- {
|
|
|
- path: 'https://panjiachen.github.io/vue-element-admin-site/#/',
|
|
|
- meta: { title: 'External Link', icon: 'link' }
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
-
|
|
|
// 404 page must be placed at the end !!!
|
|
|
{ path: '*', redirect: '/404', hidden: true }
|
|
|
]
|