From 0dbf19e9f92f5cb1d5ca9a06fd268d3b16e466e3 Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@smartai.com> Date: 星期三, 07 十二月 2022 15:22:01 +0800 Subject: [PATCH] 完善断流监控,集群和设备详情的查询 --- src/views/hashrate/index.vue | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/src/views/hashrate/index.vue b/src/views/hashrate/index.vue index c516729..dd7568f 100644 --- a/src/views/hashrate/index.vue +++ b/src/views/hashrate/index.vue @@ -20,6 +20,20 @@ Flow, Footer, }, + created() { + this.checkpermission(); + }, + methods: { + checkpermission() { + const userInfo = JSON.parse(sessionStorage.getItem("userInfo")); + const val = userInfo.permissions.find((item) => { + return item == "analysisMng"; + }); + if (val) { + this.$router.push("/hashrateDetail"); + } + }, + }, }; </script> -- Gitblit v1.8.0