mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-27 09:34:19 +08:00
refactor: refactored multi-language modules to support lazy loading and remote loading
This commit is contained in:
@@ -58,7 +58,7 @@ export function usePermission() {
|
||||
return def;
|
||||
}
|
||||
if (!isArray(value)) {
|
||||
return userStore.getRoleListState.includes(value as RoleEnum);
|
||||
return userStore.getRoleListState?.includes(value as RoleEnum);
|
||||
}
|
||||
return (intersection(value, userStore.getRoleListState) as RoleEnum[]).length > 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user