From 3ee4a65ba3d69635ec17113229c42c0636c3ae89 Mon Sep 17 00:00:00 2001 From: wanglei Date: Sat, 25 Oct 2025 11:28:54 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E6=9D=83=E9=99=90=E5=88=A4?= =?UTF-8?q?=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/views/index.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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(){