From b61d3353ae963c0430258230649951e423fbdbee Mon Sep 17 00:00:00 2001 From: children117cl <278950112@qq.com> Date: 星期五, 25 六月 2021 15:27:26 +0800 Subject: [PATCH] 管理员页,获取角色需要判断isUse===1才能使用 --- src/pages/system/admin.vue | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/pages/system/admin.vue b/src/pages/system/admin.vue index a37b148..65f8492 100644 --- a/src/pages/system/admin.vue +++ b/src/pages/system/admin.vue @@ -232,7 +232,7 @@ } } }, (inf) => { - this.roleArr = inf.list || [] + this.roleArr = inf.list && inf.list.filter(item => item.isUse === 1) || [] }) }, -- Gitblit v1.8.0