修复前端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 UpdateBlogParams = {
}
export async function update(id: string, data: UpdateBlogParams) {
return fetcher(`/admin/web/blog/${id}`, {
return fetcher(`/api/admin/web/blog/${id}`, {
method: 'POST',
body: JSON.stringify(data)
})