修复前端api漏掉/api路径问题

This commit is contained in:
2025-05-12 16:01:37 +08:00
parent 995178d212
commit bf6196afa2
8 changed files with 8 additions and 8 deletions

View File

@@ -5,7 +5,7 @@ type CreateBlogParams = {
}
export async function create(data: CreateBlogParams) {
return fetcher('/admin/web/blog', {
return fetcher('/api/admin/web/blog', {
method: 'POST',
body: JSON.stringify(data)
})