list users

This commit is contained in:
2025-07-20 13:14:31 +02:00
parent 7f2aac12e6
commit 5ec224b79e
36 changed files with 225 additions and 54 deletions

View File

@@ -1,4 +1,16 @@
<script setup lang="ts"></script>
<script setup lang="ts">
import { listUsers } from '~/lib/api/admin/listUsers';
const adminStore = useAdminStore();
await useAsyncData('users', async () => {
const response = await listUsers();
if (response.success) {
adminStore.users = response.users;
}
});
</script>
<template>
<NuxtLayout name="default">