From abe3a86c15105f215992d78bcaaf9b51efa1d565 Mon Sep 17 00:00:00 2001 From: ZZJ <10913410+zzj2100@user.noreply.gitee.com> Date: 星期四, 28 七月 2022 10:22:41 +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