|
@@ -31,30 +31,61 @@ export const constantRoutes = [{
|
|
|
]
|
|
|
export const asyncRoutes = [
|
|
|
|
|
|
+ // {
|
|
|
+ // path: '/',
|
|
|
+ // component: Layout,
|
|
|
+ // redirect: '/index',
|
|
|
+ // meta: {
|
|
|
+ // title: '首页',
|
|
|
+ // icon: 'home',
|
|
|
+ // affix: true,
|
|
|
+ // },
|
|
|
+ // children: [{
|
|
|
+ // path: 'index',
|
|
|
+ // name: 'Index',
|
|
|
+ // component: () =>
|
|
|
+ // import ('@/views/index'),
|
|
|
+ // meta: {
|
|
|
+ // title: '首页',
|
|
|
+ // icon: 'home',
|
|
|
+ // affix: true,
|
|
|
+ // },
|
|
|
+ // }, ],
|
|
|
+ // },
|
|
|
+
|
|
|
{
|
|
|
- path: '/',
|
|
|
+ path: 'external-link',
|
|
|
component: Layout,
|
|
|
+ children: [{
|
|
|
+ path: '/home',
|
|
|
+ meta: { title: '首页', icon: 'home', }
|
|
|
+ }]
|
|
|
+ },
|
|
|
+
|
|
|
+ {
|
|
|
+ path: '/',
|
|
|
redirect: '/index',
|
|
|
meta: {
|
|
|
- title: '首页',
|
|
|
- icon: 'home',
|
|
|
+ title: '告警管理',
|
|
|
+ icon: 'alarmManage',
|
|
|
affix: true,
|
|
|
},
|
|
|
+ component: Layout,
|
|
|
children: [{
|
|
|
- path: 'index',
|
|
|
- name: 'Index',
|
|
|
- component: () =>
|
|
|
- import ('@/views/index'),
|
|
|
meta: {
|
|
|
- title: '首页',
|
|
|
- icon: 'home',
|
|
|
+ title: '告警管理',
|
|
|
+ icon: 'alarmManage',
|
|
|
affix: true,
|
|
|
},
|
|
|
- }, ],
|
|
|
+ path: 'index',
|
|
|
+ component: () =>
|
|
|
+ import ('@/views/alarmManage/index'),
|
|
|
+
|
|
|
+ }, ]
|
|
|
},
|
|
|
// {
|
|
|
- // path: '/',
|
|
|
- // redirect: '/index',
|
|
|
+ // path: '/alarmManage',
|
|
|
+ // redirect: '/alarmManage/index',
|
|
|
// meta: {
|
|
|
// title: '告警管理',
|
|
|
// icon: 'alarmManage',
|
|
@@ -67,33 +98,12 @@ export const asyncRoutes = [
|
|
|
// icon: 'alarmManage',
|
|
|
// affix: true,
|
|
|
// },
|
|
|
- // path: 'index',
|
|
|
+ // path: 'alarmManage',
|
|
|
// component: () =>
|
|
|
// import ('@/views/alarmManage/index'),
|
|
|
|
|
|
// }, ]
|
|
|
// },
|
|
|
- {
|
|
|
- path: '/alarmManage',
|
|
|
- redirect: '/alarmManage/index',
|
|
|
- meta: {
|
|
|
- title: '告警管理',
|
|
|
- icon: 'alarmManage',
|
|
|
- affix: true,
|
|
|
- },
|
|
|
- component: Layout,
|
|
|
- children: [{
|
|
|
- meta: {
|
|
|
- title: '告警管理',
|
|
|
- icon: 'alarmManage',
|
|
|
- // affix: true,
|
|
|
- },
|
|
|
- path: 'alarmManage',
|
|
|
- component: () =>
|
|
|
- import ('@/views/alarmManage/index'),
|
|
|
-
|
|
|
- }, ]
|
|
|
- },
|
|
|
{
|
|
|
path: '/siteManage',
|
|
|
redirect: '/siteManage/index',
|
|
@@ -498,34 +508,35 @@ export const asyncRoutes = [
|
|
|
// },
|
|
|
|
|
|
// {
|
|
|
- // path: '/error',
|
|
|
- // name: 'Error',
|
|
|
- // component: Layout,
|
|
|
- // redirect: '/error/403',
|
|
|
- // meta: {
|
|
|
- // title: '错误页',
|
|
|
- // icon: 'error-warning-line',
|
|
|
- // },
|
|
|
- // children: [
|
|
|
- // {
|
|
|
- // path: '403',
|
|
|
- // name: 'Error403',
|
|
|
- // component: () => import('@/views/403'),
|
|
|
- // meta: {
|
|
|
- // title: '403',
|
|
|
- // icon: 'error-warning-line',
|
|
|
- // },
|
|
|
- // },
|
|
|
- // {
|
|
|
- // path: '404',
|
|
|
- // name: 'Error404',
|
|
|
- // component: () => import('@/views/404'),
|
|
|
- // meta: {
|
|
|
- // title: '404',
|
|
|
+ // path: '/error',
|
|
|
+ // name: 'Error',
|
|
|
+ // component: Layout,
|
|
|
+ // redirect: '/error/403',
|
|
|
+ // meta: {
|
|
|
+ // title: '错误页',
|
|
|
// icon: 'error-warning-line',
|
|
|
- // },
|
|
|
// },
|
|
|
- // ],
|
|
|
+ // children: [{
|
|
|
+ // path: '403',
|
|
|
+ // name: 'Error403',
|
|
|
+ // component: () =>
|
|
|
+ // import ('@/views/403'),
|
|
|
+ // meta: {
|
|
|
+ // title: '403',
|
|
|
+ // icon: 'error-warning-line',
|
|
|
+ // },
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // path: '404',
|
|
|
+ // name: 'Error404',
|
|
|
+ // component: () =>
|
|
|
+ // import ('@/views/404'),
|
|
|
+ // meta: {
|
|
|
+ // title: '404',
|
|
|
+ // icon: 'error-warning-line',
|
|
|
+ // },
|
|
|
+ // },
|
|
|
+ // ],
|
|
|
// },
|
|
|
{
|
|
|
path: '/*',
|