From f1f3baf502c0e33be1a1772d8444ff8f5360c87f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9C=E7=8E=89=E7=90=A6?= <7507756+jiang_yuqi@user.noreply.gitee.com> Date: Wed, 20 Mar 2024 21:21:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/header.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/header.vue b/src/components/header.vue index eff4346..941b4ab 100644 --- a/src/components/header.vue +++ b/src/components/header.vue @@ -161,7 +161,7 @@ export default { this.setTitle(); this.timerID = setInterval(this.updateTime, 1000); this.updateTime(); - let roleId = +this.$store.getters.roleId; + let roleId = + this.$store.getters.roleId; Cookies.remove("__ids__"); if ([5, 6, 7, 15, 16, 17, 99].includes(roleId)) { this.isTypeBuser = true; @@ -192,7 +192,7 @@ export default { this.isTypeBuser = false; this.$api.dept.list().then(d => { this.$root.hasInitHeader = true; - if (roleId < 3) { + if (roleId < 4) { this.depts = [{ text: '产发集团', id: 0 }, ...(d?.data || []).map(it => { it.text = it.deptName; it.id = it.deptId;