zhangzengfei
2022-08-20 0c504d6e0a2805195ebe6498f73429af414d88b4
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>