默认首页渲染更改为实时监控

merge-requests/1/head
张鑫 5 years ago
parent ee1d64efdf
commit 0c5c411b09

@ -3,8 +3,8 @@
"type": -1, "type": -1,
"rights": "duojiSystem", "rights": "duojiSystem",
"children": [{ "children": [{
"description": "历史监控", "description": "实时监控",
"type": 2, "type": 1,
"rights": "history" "rights": "realTimeMonitoring"
}] }]
} }

@ -25,7 +25,7 @@ VueRouter.prototype.push = function push(location) {
const routes = [{ const routes = [{
path: '/', path: '/',
redirect: { redirect: {
name: 'history' name: 'realTimeMonitoring'
}, },
component: () => import('@/views/index'), component: () => import('@/views/index'),
children: [ children: [

@ -27,7 +27,7 @@ export default {
methods: { methods: {
go(index) { go(index) {
if (index === 0) { if (index === 0) {
this.$router.push({ name: "history" }); this.$router.push({ name: "realTimeMonitoring" });
} else { } else {
this.$message.info("暂未开放"); this.$message.info("暂未开放");
} }
@ -46,4 +46,4 @@ export default {
cursor: pointer; cursor: pointer;
} }
} }
</style> </style>

Loading…
Cancel
Save