|
|
@@ -16,6 +16,7 @@ import profileRouter from "@/router/modules/profile";
|
|
|
import configRouter from "@/router/modules/config";
|
|
|
import atlasRouter from "@/router/modules/atlas";
|
|
|
import articleRouter from "@/router/modules/article";
|
|
|
+import bonusRouter from "@/router/modules/bonus";
|
|
|
|
|
|
/**
|
|
|
* Note: sub-menu only appear when route children.length >= 1
|
|
|
@@ -203,6 +204,7 @@ export const asyncRoutes = [
|
|
|
configRouter,
|
|
|
atlasRouter,
|
|
|
articleRouter,
|
|
|
+ bonusRouter,
|
|
|
|
|
|
{
|
|
|
path: '/error',
|
|
|
@@ -242,129 +244,6 @@ export const asyncRoutes = [
|
|
|
]
|
|
|
},
|
|
|
|
|
|
- // {
|
|
|
- // 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: 'exportExcel' }
|
|
|
- // },
|
|
|
- // {
|
|
|
- // path: 'export-selected-excel',
|
|
|
- // component: () => import('@/views/excel/select-excel'),
|
|
|
- // name: 'SelectExcel',
|
|
|
- // meta: { title: 'selectExcel' }
|
|
|
- // },
|
|
|
- // {
|
|
|
- // path: 'export-merge-header',
|
|
|
- // component: () => import('@/views/excel/merge-header'),
|
|
|
- // name: 'MergeHeader',
|
|
|
- // meta: { title: 'mergeHeader' }
|
|
|
- // },
|
|
|
- // {
|
|
|
- // path: 'upload-excel',
|
|
|
- // component: () => import('@/views/excel/upload-excel'),
|
|
|
- // name: 'UploadExcel',
|
|
|
- // meta: { title: 'uploadExcel' }
|
|
|
- // }
|
|
|
- // ]
|
|
|
- // },
|
|
|
- //
|
|
|
- // {
|
|
|
- // 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: 'exportZip' }
|
|
|
- // }
|
|
|
- // ]
|
|
|
- // },
|
|
|
- //
|
|
|
- // {
|
|
|
- // 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: 'clipboardDemo', icon: 'clipboard' }
|
|
|
- // }
|
|
|
- // ]
|
|
|
- // },
|
|
|
-
|
|
|
- // {
|
|
|
- // path: '/i18n',
|
|
|
- // component: Layout,
|
|
|
- // children: [
|
|
|
- // {
|
|
|
- // path: 'index',
|
|
|
- // component: () => import('@/views/i18n-demo/index'),
|
|
|
- // name: 'I18n',
|
|
|
- // meta: { title: 'i18n', icon: 'international' }
|
|
|
- // }
|
|
|
- // ]
|
|
|
- // },
|
|
|
- //
|
|
|
- // {
|
|
|
- // path: 'external-link',
|
|
|
- // component: Layout,
|
|
|
- // children: [
|
|
|
- // {
|
|
|
- // path: 'https://github.com/PanJiaChen/vue-element-admin',
|
|
|
- // meta: { title: 'externalLink', icon: 'link' }
|
|
|
- // }
|
|
|
- // ]
|
|
|
- // },
|
|
|
-
|
|
|
// 404 page must be placed at the end !!!
|
|
|
{ path: '*', redirect: '/404', hidden: true }
|
|
|
]
|