实现添加博客

This commit is contained in:
2025-05-16 21:58:33 +08:00
parent 65303ac988
commit 59a68b372b
13 changed files with 260 additions and 39 deletions

View File

@@ -1,7 +1,21 @@
"use client"
import { useBlogList } from "@/hooks/admin/web/blog/use-blog-list"
import BlogTable from "./components/BlogTable"
import AddBlog from "./components/AddBlog";
import { Button } from "@/components/ui/button";
export default function Page() {
const { blogs, error, isLoading, refresh } = useBlogList();
return (
<>
<div>
<AddBlog onRefresh={refresh}>
<Button></Button>
</AddBlog>
</div>
<BlogTable blogs={blogs || []} onRefresh={refresh} />
</>
)
}