feat: 调整前端blog列表为服务端渲染模式
This commit is contained in:
@@ -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');
|
||||
}
|
||||
Reference in New Issue
Block a user