|
@@ -53,13 +53,32 @@ const actions = {
|
|
|
store.state.auth = 1
|
|
|
}
|
|
|
data[0].meta.affix = false
|
|
|
- data[0].children[0].meta.affix = true
|
|
|
+
|
|
|
+
|
|
|
+ //根据首页请求地址动态配置affix的标签项
|
|
|
+ if (store.state.homePageUrl) {
|
|
|
+ data.forEach(function(item) {
|
|
|
+ item.children.forEach(function(aa) {
|
|
|
+ if (aa.component == store.state.homePageUrl) {
|
|
|
+ aa.meta.affix = true
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+
|
|
|
+ } else {
|
|
|
+ data[0].children[0].meta.affix = true
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
// data.unshift({
|
|
|
- // path: "/home",
|
|
|
+ // path: "/",
|
|
|
// hidden: false,
|
|
|
- // redirect: "/index/index",
|
|
|
+ // redirect: "/index",
|
|
|
// component: "Layout",
|
|
|
// meta: {
|
|
|
// title: "数据看板",
|
|
@@ -67,11 +86,11 @@ const actions = {
|
|
|
|
|
|
// },
|
|
|
// children: [{
|
|
|
- // path: "/index/index",
|
|
|
+ // path: "index",
|
|
|
// hidden: false,
|
|
|
- // component: "@/views/index/index",
|
|
|
+ // component: "@/views/index",
|
|
|
// meta: {
|
|
|
- // title: "数据看板",
|
|
|
+ // title: "数据看板1",
|
|
|
// icon: "home",
|
|
|
// affix: true
|
|
|
|
|
@@ -79,6 +98,29 @@ const actions = {
|
|
|
// }]
|
|
|
// })
|
|
|
|
|
|
+ // data.push({
|
|
|
+ // path: "/alarmManage",
|
|
|
+ // hidden: false,
|
|
|
+ // redirect: "/alarmManage/index",
|
|
|
+ // component: "Layout",
|
|
|
+ // meta: {
|
|
|
+ // title: "告警管理",
|
|
|
+ // icon: "alarmManage",
|
|
|
+
|
|
|
+ // },
|
|
|
+ // children: [{
|
|
|
+ // meta: {
|
|
|
+ // title: "告警管理",
|
|
|
+ // icon: "alarmManage",
|
|
|
+
|
|
|
+ // },
|
|
|
+ // path: "/alarmManage",
|
|
|
+ // hidden: false,
|
|
|
+ // component: "@/views/alarmManage/index",
|
|
|
+
|
|
|
+ // }, ]
|
|
|
+ // }, )
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -119,9 +161,9 @@ const actions = {
|
|
|
icon: "statisManage",
|
|
|
|
|
|
},
|
|
|
- path: "/loginLog",
|
|
|
+ path: "loginLog",
|
|
|
hidden: false,
|
|
|
- component: "@/views/statisManage/loginLog",
|
|
|
+ component: "@/views/statisManage/loginLog/index",
|
|
|
|
|
|
}, {
|
|
|
meta: {
|
|
@@ -129,9 +171,9 @@ const actions = {
|
|
|
icon: "statisManage",
|
|
|
|
|
|
},
|
|
|
- path: "/operLog",
|
|
|
+ path: "operLog",
|
|
|
hidden: false,
|
|
|
- component: "@/views/statisManage/operLog",
|
|
|
+ component: "@/views/statisManage/operLog/index",
|
|
|
|
|
|
}]
|
|
|
})
|