# 调整role
This commit is contained in:
parent
6a913ec57f
commit
30a9bdee69
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue