From e3f6f9107d62d5779a5f0d87bddf8ff7e107f485 Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Tue, 21 Jan 2025 17:12:33 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=92=E8=89=B2=E5=8F=AF=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E9=80=89=E9=A1=B9=E4=B8=8D=E8=B6=B3=E6=97=B6=E4=B8=8D=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E5=88=87=E6=8D=A2=E8=A7=92=E8=89=B2=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/trials/trials-layout/components/trialsNavbar.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/views/trials/trials-layout/components/trialsNavbar.vue b/src/views/trials/trials-layout/components/trialsNavbar.vue index c5c47cc9..004aa805 100644 --- a/src/views/trials/trials-layout/components/trialsNavbar.vue +++ b/src/views/trials/trials-layout/components/trialsNavbar.vue @@ -146,7 +146,11 @@ export default { return this.$store.state.user.roles }, hasRole() { - return this.roles && this.roles.length > 1 + return ( + this.roles && + this.roles.length > 1 && + this.roles.filter((item) => !item.IsUserRoleDisabled).length > 1 + ) }, }, watch: {