feat: 优化项目目录结构
This commit is contained in:
21
apps/frontend/app/console/(with-menu)/web/blog/page.tsx
Normal file
21
apps/frontend/app/console/(with-menu)/web/blog/page.tsx
Normal file
@@ -0,0 +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, refresh } = useBlogList();
|
||||
|
||||
return (
|
||||
<>
|
||||
<div>
|
||||
<AddBlog onRefresh={refresh}>
|
||||
<Button>添加博客</Button>
|
||||
</AddBlog>
|
||||
</div>
|
||||
<BlogTable blogs={blogs || []} onRefresh={refresh} />
|
||||
</>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user