Cleared up the routes a little
This commit is contained in:
		@@ -94,33 +94,6 @@ export const constantRoutes = [
 | 
				
			|||||||
        meta: { title: 'Documentation', icon: 'documentation', affix: true }
 | 
					        meta: { title: 'Documentation', icon: 'documentation', affix: 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 }
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
    ]
 | 
					 | 
				
			||||||
  },
 | 
					 | 
				
			||||||
  {
 | 
					 | 
				
			||||||
    path: '/profile',
 | 
					 | 
				
			||||||
    component: Layout,
 | 
					 | 
				
			||||||
    redirect: '/profile/index',
 | 
					 | 
				
			||||||
    hidden: true,
 | 
					 | 
				
			||||||
    children: [
 | 
					 | 
				
			||||||
      {
 | 
					 | 
				
			||||||
        path: 'index',
 | 
					 | 
				
			||||||
        component: () => import('@/views/profile/index'),
 | 
					 | 
				
			||||||
        name: 'Profile',
 | 
					 | 
				
			||||||
        meta: { title: 'Profile', icon: 'user', noCache: true }
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
    ]
 | 
					 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
]
 | 
					]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -171,19 +144,6 @@ export const asyncRoutes = [
 | 
				
			|||||||
    ]
 | 
					    ]
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  {
 | 
					 | 
				
			||||||
    path: '/icon',
 | 
					 | 
				
			||||||
    component: Layout,
 | 
					 | 
				
			||||||
    children: [
 | 
					 | 
				
			||||||
      {
 | 
					 | 
				
			||||||
        path: 'index',
 | 
					 | 
				
			||||||
        component: () => import('@/views/icons/index'),
 | 
					 | 
				
			||||||
        name: 'Icons',
 | 
					 | 
				
			||||||
        meta: { title: 'Icons', icon: 'icon', noCache: true }
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
    ]
 | 
					 | 
				
			||||||
  },
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  /** when your routing map is too long, you can split it into small modules **/
 | 
					  /** when your routing map is too long, you can split it into small modules **/
 | 
				
			||||||
  componentsRouter,
 | 
					  componentsRouter,
 | 
				
			||||||
  chartsRouter,
 | 
					  chartsRouter,
 | 
				
			||||||
@@ -222,163 +182,13 @@ export const asyncRoutes = [
 | 
				
			|||||||
    ]
 | 
					    ]
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  {
 | 
					 | 
				
			||||||
    path: '/tab',
 | 
					 | 
				
			||||||
    component: Layout,
 | 
					 | 
				
			||||||
    children: [
 | 
					 | 
				
			||||||
      {
 | 
					 | 
				
			||||||
        path: 'index',
 | 
					 | 
				
			||||||
        component: () => import('@/views/tab/index'),
 | 
					 | 
				
			||||||
        name: 'Tab',
 | 
					 | 
				
			||||||
        meta: { title: 'Tab', icon: 'tab' }
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
    ]
 | 
					 | 
				
			||||||
  },
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  {
 | 
					 | 
				
			||||||
    path: '/error',
 | 
					 | 
				
			||||||
    component: Layout,
 | 
					 | 
				
			||||||
    redirect: 'noRedirect',
 | 
					 | 
				
			||||||
    name: 'ErrorPages',
 | 
					 | 
				
			||||||
    meta: {
 | 
					 | 
				
			||||||
      title: 'Error Pages',
 | 
					 | 
				
			||||||
      icon: '404'
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    children: [
 | 
					 | 
				
			||||||
      {
 | 
					 | 
				
			||||||
        path: '401',
 | 
					 | 
				
			||||||
        component: () => import('@/views/error-page/401'),
 | 
					 | 
				
			||||||
        name: 'Page401',
 | 
					 | 
				
			||||||
        meta: { title: '401', noCache: true }
 | 
					 | 
				
			||||||
      },
 | 
					 | 
				
			||||||
      {
 | 
					 | 
				
			||||||
        path: '404',
 | 
					 | 
				
			||||||
        component: () => import('@/views/error-page/404'),
 | 
					 | 
				
			||||||
        name: 'Page404',
 | 
					 | 
				
			||||||
        meta: { title: '404', noCache: true }
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
    ]
 | 
					 | 
				
			||||||
  },
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  {
 | 
					 | 
				
			||||||
    path: '/error-log',
 | 
					 | 
				
			||||||
    component: Layout,
 | 
					 | 
				
			||||||
    children: [
 | 
					 | 
				
			||||||
      {
 | 
					 | 
				
			||||||
        path: 'log',
 | 
					 | 
				
			||||||
        component: () => import('@/views/error-log/index'),
 | 
					 | 
				
			||||||
        name: 'ErrorLog',
 | 
					 | 
				
			||||||
        meta: { title: 'Error Log', icon: 'bug' }
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
    ]
 | 
					 | 
				
			||||||
  },
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  {
 | 
					 | 
				
			||||||
    path: '/excel',
 | 
					 | 
				
			||||||
    component: Layout,
 | 
					 | 
				
			||||||
    redirect: '/excel/export-excel',
 | 
					 | 
				
			||||||
    name: 'Excel',
 | 
					 | 
				
			||||||
    meta: {
 | 
					 | 
				
			||||||
      title: 'Excel',
 | 
					 | 
				
			||||||
      icon: 'excel'
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    children: [
 | 
					 | 
				
			||||||
      {
 | 
					 | 
				
			||||||
        path: 'export-excel',
 | 
					 | 
				
			||||||
        component: () => import('@/views/excel/export-excel'),
 | 
					 | 
				
			||||||
        name: 'ExportExcel',
 | 
					 | 
				
			||||||
        meta: { title: 'Export Excel' }
 | 
					 | 
				
			||||||
      },
 | 
					 | 
				
			||||||
      {
 | 
					 | 
				
			||||||
        path: 'export-selected-excel',
 | 
					 | 
				
			||||||
        component: () => import('@/views/excel/select-excel'),
 | 
					 | 
				
			||||||
        name: 'SelectExcel',
 | 
					 | 
				
			||||||
        meta: { title: 'Export Selected' }
 | 
					 | 
				
			||||||
      },
 | 
					 | 
				
			||||||
      {
 | 
					 | 
				
			||||||
        path: 'export-merge-header',
 | 
					 | 
				
			||||||
        component: () => import('@/views/excel/merge-header'),
 | 
					 | 
				
			||||||
        name: 'MergeHeader',
 | 
					 | 
				
			||||||
        meta: { title: 'Merge Header' }
 | 
					 | 
				
			||||||
      },
 | 
					 | 
				
			||||||
      {
 | 
					 | 
				
			||||||
        path: 'upload-excel',
 | 
					 | 
				
			||||||
        component: () => import('@/views/excel/upload-excel'),
 | 
					 | 
				
			||||||
        name: 'UploadExcel',
 | 
					 | 
				
			||||||
        meta: { title: 'Upload Excel' }
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
    ]
 | 
					 | 
				
			||||||
  },
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  {
 | 
					 | 
				
			||||||
    path: '/zip',
 | 
					 | 
				
			||||||
    component: Layout,
 | 
					 | 
				
			||||||
    redirect: '/zip/download',
 | 
					 | 
				
			||||||
    alwaysShow: true,
 | 
					 | 
				
			||||||
    name: 'Zip',
 | 
					 | 
				
			||||||
    meta: { title: 'Zip', icon: 'zip' },
 | 
					 | 
				
			||||||
    children: [
 | 
					 | 
				
			||||||
      {
 | 
					 | 
				
			||||||
        path: 'download',
 | 
					 | 
				
			||||||
        component: () => import('@/views/zip/index'),
 | 
					 | 
				
			||||||
        name: 'ExportZip',
 | 
					 | 
				
			||||||
        meta: { title: 'Export Zip' }
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
    ]
 | 
					 | 
				
			||||||
  },
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  {
 | 
					 | 
				
			||||||
    path: '/pdf',
 | 
					 | 
				
			||||||
    component: Layout,
 | 
					 | 
				
			||||||
    redirect: '/pdf/index',
 | 
					 | 
				
			||||||
    children: [
 | 
					 | 
				
			||||||
      {
 | 
					 | 
				
			||||||
        path: 'index',
 | 
					 | 
				
			||||||
        component: () => import('@/views/pdf/index'),
 | 
					 | 
				
			||||||
        name: 'PDF',
 | 
					 | 
				
			||||||
        meta: { title: 'PDF', icon: 'pdf' }
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
    ]
 | 
					 | 
				
			||||||
  },
 | 
					 | 
				
			||||||
  {
 | 
					 | 
				
			||||||
    path: '/pdf/download',
 | 
					 | 
				
			||||||
    component: () => import('@/views/pdf/download'),
 | 
					 | 
				
			||||||
    hidden: true
 | 
					 | 
				
			||||||
  },
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  {
 | 
					 | 
				
			||||||
    path: '/theme',
 | 
					 | 
				
			||||||
    component: Layout,
 | 
					 | 
				
			||||||
    children: [
 | 
					 | 
				
			||||||
      {
 | 
					 | 
				
			||||||
        path: 'index',
 | 
					 | 
				
			||||||
        component: () => import('@/views/theme/index'),
 | 
					 | 
				
			||||||
        name: 'Theme',
 | 
					 | 
				
			||||||
        meta: { title: 'Theme', icon: 'theme' }
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
    ]
 | 
					 | 
				
			||||||
  },
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  {
 | 
					 | 
				
			||||||
    path: '/clipboard',
 | 
					 | 
				
			||||||
    component: Layout,
 | 
					 | 
				
			||||||
    children: [
 | 
					 | 
				
			||||||
      {
 | 
					 | 
				
			||||||
        path: 'index',
 | 
					 | 
				
			||||||
        component: () => import('@/views/clipboard/index'),
 | 
					 | 
				
			||||||
        name: 'ClipboardDemo',
 | 
					 | 
				
			||||||
        meta: { title: 'Clipboard', icon: 'clipboard' }
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
    ]
 | 
					 | 
				
			||||||
  },
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  {
 | 
					  {
 | 
				
			||||||
    path: 'external-link',
 | 
					    path: 'external-link',
 | 
				
			||||||
    component: Layout,
 | 
					    component: Layout,
 | 
				
			||||||
    children: [
 | 
					    children: [
 | 
				
			||||||
      {
 | 
					      {
 | 
				
			||||||
        path: 'https://github.com/PanJiaChen/vue-element-admin',
 | 
					        path: 'https://plattform.onlinefuels.de',
 | 
				
			||||||
        meta: { title: 'External Link', icon: 'link' }
 | 
					        meta: { title: 'Plattform', icon: 'link' }
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    ]
 | 
					    ]
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user