对接后端更改做了适配,

This commit is contained in:
thiszhc
2023-07-01 15:05:48 +08:00
parent 2b7ffdf19c
commit 6e3aec7c50
2 changed files with 8 additions and 11 deletions

View File

@ -66,20 +66,19 @@ export function getCodeImg(): AxiosPromise<VerifyCodeResult> {
* 第三方登录
* @param source 第三方登录类型
* */
export function socialLogin(source: string, tenantId: string, loginType: string, code: any, state: any): AxiosPromise<any> {
export function socialLogin(source: string, tenantId: string, code: any, state: any): AxiosPromise<any> {
const data = {
code,
state,
socialCode: code,
socialState: state,
source,
tenantId,
loginType,
clientId: 'e5cd7e4891bf95d1d19206ce24a7b32e',
grantType: 'social'
};
return request({
url: '/auth/social-login',
method: 'get',
params: data
method: 'post',
data: data
});
}