mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-27 09:34:19 +08:00
refactor: refactor hooks
This commit is contained in:
@@ -94,6 +94,7 @@ export function usePermission() {
|
||||
'Please switch PermissionModeEnum to ROLE mode in the configuration to operate!'
|
||||
);
|
||||
}
|
||||
|
||||
if (!isArray(roles)) {
|
||||
roles = [roles];
|
||||
}
|
||||
|
Reference in New Issue
Block a user