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>