update 优化 !pr370 完成三方登录授权功能
This commit is contained in:
@ -74,9 +74,6 @@ export function socialLogin(source: string, code: any, state: any): AxiosPromise
|
||||
return request({
|
||||
url: '/auth/social-login/' + source,
|
||||
method: 'get',
|
||||
headers: {
|
||||
isToken: true
|
||||
},
|
||||
params: data
|
||||
});
|
||||
}
|
||||
|
@ -4,10 +4,7 @@ import request from '@/utils/request';
|
||||
export function authBinding(source: string) {
|
||||
return request({
|
||||
url: '/auth/binding/' + source,
|
||||
method: 'get',
|
||||
headers: {
|
||||
isToken: true
|
||||
}
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
|
||||
@ -15,19 +12,13 @@ export function authBinding(source: string) {
|
||||
export function authUnlock(authId: string) {
|
||||
return request({
|
||||
url: '/auth/unlock/' + authId,
|
||||
method: 'delete',
|
||||
headers: {
|
||||
isToken: true
|
||||
}
|
||||
method: 'delete'
|
||||
});
|
||||
}
|
||||
//获取授权列表
|
||||
export function getAuthList() {
|
||||
return request({
|
||||
url: '/system/social/list',
|
||||
method: 'get',
|
||||
headers: {
|
||||
isToken: true
|
||||
}
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user