增加 注册 页面,sorry页面,修改部分bug
This commit is contained in:
+10
-1
@@ -39,6 +39,15 @@ const removeBlogType = (data: Object) => {
|
||||
})
|
||||
}
|
||||
|
||||
const sortBlogTypes = (data: Object) => {
|
||||
return service({
|
||||
url: '/auth/api/v1/author/blog_types',
|
||||
method: 'POST',
|
||||
headers: headers,
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
const getContent = (id: string) => {
|
||||
return service({
|
||||
url: '/auth/api/v1/author/blog/content/' + id,
|
||||
@@ -74,4 +83,4 @@ const deleteContent = (bid: string) => {
|
||||
}
|
||||
|
||||
|
||||
export { listAll, updateBtName, putBlogType, removeBlogType, getContent, putBlog, updateContent, deleteContent }
|
||||
export { listAll, updateBtName, putBlogType, removeBlogType, sortBlogTypes, getContent, putBlog, updateContent, deleteContent }
|
||||
+9
-1
@@ -22,5 +22,13 @@ const logout = (id: string) => {
|
||||
})
|
||||
}
|
||||
|
||||
const register_user = (postData: Object) => {
|
||||
return service({
|
||||
url: '/auth/api/v1/register',
|
||||
method: 'POST',
|
||||
data: postData
|
||||
})
|
||||
}
|
||||
|
||||
export { authorize, obtainUserInfo, logout }
|
||||
|
||||
export { authorize, obtainUserInfo, logout, register_user }
|
||||
Reference in New Issue
Block a user