mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Merge branch 'main' of github.com:directus/next into main
This commit is contained in:
@@ -25,7 +25,11 @@ export default function useNavigation() {
|
||||
if (!loading || !roles) return;
|
||||
loading.value = true;
|
||||
|
||||
const rolesResponse = await api.get(`/roles`);
|
||||
const rolesResponse = await api.get(`/roles`, {
|
||||
params: {
|
||||
sort: 'name',
|
||||
}
|
||||
});
|
||||
roles.value = rolesResponse.data.data;
|
||||
loading.value = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user