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