init service page

This commit is contained in:
uubulb
2024-11-15 16:49:10 +08:00
parent f842d5aeec
commit 22da283031
4 changed files with 129 additions and 3 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
import { swrFetcher } from "@/api/api"
import { Checkbox } from "@/components/ui/checkbox"
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "@/components/ui/table"
import { Server } from "@/types"
import { ModelServer as Server } from "@/types"
import { ColumnDef, flexRender, getCoreRowModel, useReactTable } from "@tanstack/react-table"
import useSWR from "swr"
@@ -42,7 +42,7 @@ export default function ServerPage() {
{
header: "Host",
accessorKey: "host.ip",
accessorFn: (row) => row.host.ip,
accessorFn: (row) => row.host?.ip,
},
{
id: "actions",