Modify login process

This commit is contained in:
simple321vip
2022-08-28 12:45:49 +08:00
parent e9c8cb9d33
commit c865fd1184
51 changed files with 207 additions and 162 deletions
+2 -1
View File
@@ -7,7 +7,8 @@ const headers = {
const listAll = () => {
return request({
url: '/auth/api/v1/author/blog/list',
method: 'GET'
method: 'GET',
headers: headers
})
}
+5 -5
View File
@@ -3,7 +3,7 @@ import request from '../utils/request'
const get_notes = (params: Object) => {
return request({
url: '/auth/api/v1/one_note',
method: 'get',
method: 'GET',
params: params
})
}
@@ -11,7 +11,7 @@ const get_notes = (params: Object) => {
const update_page = (params: Object) => {
return request({
url: '/auth/api/v1/one_note/update_page',
method: 'post',
method: 'POST',
data: params
})
}
@@ -19,7 +19,7 @@ const update_page = (params: Object) => {
const update_section = (params: Object) => {
return request({
url: '/auth/api/v1/one_note/update_section',
method: 'post',
method: 'POST',
data: params
})
}
@@ -27,14 +27,14 @@ const update_section = (params: Object) => {
const insert_section = () => {
return request({
url: '/auth/api/v1/one_note/insert_section',
method: 'put'
method: 'PUT'
})
}
const insert_page = (params: Object) => {
return request({
url: '/auth/one_note/insert_page',
method: 'put',
method: 'PUT',
data: params
})
}
+9 -1
View File
@@ -15,4 +15,12 @@ const obtainUserInfo = (token: string) => {
})
}
export { authorize, obtainUserInfo }
const logout = (id: string) => {
return request({
url: '/auth/api/v1/logout/' + id,
method: 'GET'
})
}
export { authorize, obtainUserInfo, logout }