diff --git a/auth.json b/auth.json index f3038e2..21c035c 100644 --- a/auth.json +++ b/auth.json @@ -3,8 +3,8 @@ "type": -1, "rights": "duojiSystem", "children": [{ - "description": "历史监控", - "type": 2, - "rights": "history" + "description": "实时监控", + "type": 1, + "rights": "realTimeMonitoring" }] } diff --git a/src/router/index.js b/src/router/index.js index 4e75fd9..49fd8a6 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -25,7 +25,7 @@ VueRouter.prototype.push = function push(location) { const routes = [{ path: '/', redirect: { - name: 'history' + name: 'realTimeMonitoring' }, component: () => import('@/views/index'), children: [ diff --git a/src/views/guide.vue b/src/views/guide.vue index d676388..c07a664 100644 --- a/src/views/guide.vue +++ b/src/views/guide.vue @@ -27,7 +27,7 @@ export default { methods: { go(index) { if (index === 0) { - this.$router.push({ name: "history" }); + this.$router.push({ name: "realTimeMonitoring" }); } else { this.$message.info("暂未开放"); } @@ -46,4 +46,4 @@ export default { cursor: pointer; } } - \ No newline at end of file +