mirror of
https://gitee.com/hhyykk/ipms-sjy-ui.git
synced 2025-08-05 21:54:07 +08:00
将超级管理员的角色code由admin改为super_admin
This commit is contained in:
@@ -7,7 +7,7 @@ export function hasRole(app: App<Element>) {
|
||||
app.directive('hasRole', (el, binding) => {
|
||||
const { wsCache } = useCache()
|
||||
const { value } = binding
|
||||
const super_admin = 'admin'
|
||||
const super_admin = 'super_admin'
|
||||
const roles = wsCache.get(CACHE_KEY.USER).roles
|
||||
|
||||
if (value && value instanceof Array && value.length > 0) {
|
||||
|
Reference in New Issue
Block a user