From 3834d30a6d56ad7c4d4f5fe630af649ab6826428 Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@smartai.com> Date: 星期日, 28 八月 2022 22:25:58 +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