修复前端api漏掉/api路径问题
This commit is contained in:
@@ -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)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user