fix:修复新建博客时提示标题和类别为空的问题

This commit is contained in:
2025-09-28 18:43:24 +08:00
parent 724561df55
commit fef163d768
5 changed files with 18 additions and 14 deletions

View File

@@ -23,7 +23,7 @@ export const queryBlogByConditionApi = (query: IQueryBlog): Promise<IBlog[]> =>
export const queryBlogByIdApi = (id: number): Promise<IBlog> =>
cloudService({
url: `/blog-api/blog/content/${id}`,
url: `/blog-api/blog/${id}/content`,
method: 'get'
})
@@ -47,7 +47,7 @@ export const queryLatestBlogApi = (): Promise<IBlog[]> =>
export const queryBlogCommentApi = (blogId: number): Promise<IBlogComment[]> =>
cloudService({
url: `/blog-api/blog/comment/${blogId}`,
url: `/blog-api/blog/${blogId}/comment`,
method: 'get'
})