refactor: refactor hooks

This commit is contained in:
Vben
2021-04-10 20:32:44 +08:00
parent 215d8bab38
commit 2037293aa3
23 changed files with 52 additions and 394 deletions

View File

@@ -94,6 +94,7 @@ export function usePermission() {
'Please switch PermissionModeEnum to ROLE mode in the configuration to operate!'
);
}
if (!isArray(roles)) {
roles = [roles];
}