From 30a9bdee6930974d78b5cedb0c5017d633b81efe Mon Sep 17 00:00:00 2001 From: xianfuxing Date: Wed, 27 May 2020 11:17:55 +0800 Subject: [PATCH] =?UTF-8?q?#=20=E8=B0=83=E6=95=B4role?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/dashboard/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue index b4d68c4..5817f70 100644 --- a/src/views/dashboard/index.vue +++ b/src/views/dashboard/index.vue @@ -23,7 +23,7 @@ export default { ]) }, created() { - const adminDashboardRoles = new Set(['superadmin', 'admin', 'staff']) + const adminDashboardRoles = new Set(['manager', 'admin', 'staff']) const userRoles = new Set(this.roles) const intersection = new Set([...userRoles].filter(role => adminDashboardRoles.has(role))) console.log(intersection.size)