feat: 调整前端blog列表为服务端渲染模式

This commit is contained in:
2025-12-12 20:48:47 +08:00
parent 7d3a809fa7
commit e6f3459f81
2 changed files with 7 additions and 22 deletions

View File

@@ -1,6 +1,6 @@
import { Blog } from "@/lib/types/blog";
import fetcher from "../fetcher";
import { apiFetch } from "../client";
export async function list() {
return fetcher<Blog[]>('/api/blog');
return apiFetch<Blog[]>('/api/blog');
}