# 调整role

This commit is contained in:
xianfuxing 2020-05-27 11:17:55 +08:00
parent 6a913ec57f
commit 30a9bdee69
1 changed files with 1 additions and 1 deletions

View File

@ -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)