ZZJ
2022-07-15 5c0c6ad7ac6f28e970532af9936de638830f1161
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>