This commit is contained in:
bipproduction
2025-10-21 16:30:29 +08:00
parent 026dbe6f9b
commit fadd3c9516
2 changed files with 6 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
import apiFetch from "@/lib/apiFetch"; import apiFetch from "@/lib/apiFetch";
import { Button, Card, Pagination, Skeleton, Stack, Text, Title } from "@mantine/core"; import { Button, Card, Group, Pagination, Skeleton, Stack, Text, Title } from "@mantine/core";
import { useLocalStorage, useShallowEffect } from "@mantine/hooks"; import { useLocalStorage, useShallowEffect } from "@mantine/hooks";
import dayjs from "dayjs"; import dayjs from "dayjs";
import useSWR from "swr"; import useSWR from "swr";
@@ -36,7 +36,9 @@ export default function WaHookHome() {
return ( return (
<Stack> <Stack>
<Title order={2}>WaHookHome</Title> <Title order={2}>WaHookHome</Title>
<Group justify="flex-end">
<Button onClick={reset}>Reset</Button> <Button onClick={reset}>Reset</Button>
</Group>
{data?.data?.list.map((item) => ( {data?.data?.list.map((item) => (
<Card key={item.id}> <Card key={item.id}>
<Stack> <Stack>

View File

@@ -155,7 +155,7 @@ const WaHookRoute = new Elysia({
})) }))
return { return {
list: result, list: result,
count, count: Math.ceil(count / (query.limit || 10)),
}; };
}, { }, {
query: t.Object({ query: t.Object({