ZZJ
2022-04-22 7170a5adff3d48ac589fbb2c67ac6c45684b4393
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>