diff --git a/ruoyi-ui/src/views/index.vue b/ruoyi-ui/src/views/index.vue index 2461393..0a37597 100644 --- a/ruoyi-ui/src/views/index.vue +++ b/ruoyi-ui/src/views/index.vue @@ -50,9 +50,14 @@ export default { } }, created() { + console.log(this.$store.state.user.roles); this.queryParams.pingceId = this.$store.state.user.pcId; this.queryParams.itemIds = this.$store.state.user.itemIds; - this.getList(); + if(this.$store.state.user.roles.length===1&&this.$store.state.user.roles[0]==='employee'){ + + }else { + this.getList(); + } }, methods: { getList(){