ZZJ
2022-04-20 b4495445fbfc616a2126587ce9eec205fc1cbe19
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>