From 1fe240406526b9b6256664559d3d2bec9250135c Mon Sep 17 00:00:00 2001
From: mark <mark18340872469@163.com>
Date: 星期五, 21 十月 2022 18:38:53 +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