From 6e3aec7c50c1dadcbbafbd5f04880f5395480f67 Mon Sep 17 00:00:00 2001 From: thiszhc <2029364173@qq.com> Date: 星期六, 01 七月 2023 15:05:48 +0800 Subject: [PATCH] 对接后端更改做了适配, --- src/api/login.ts | 19 +++++++++++++++++++ 1 files changed, 19 insertions(+), 0 deletions(-) diff --git a/src/api/login.ts b/src/api/login.ts index 4eaa594..655d6c9 100644 --- a/src/api/login.ts +++ b/src/api/login.ts @@ -62,6 +62,25 @@ timeout: 20000 }); } +/** + * 绗笁鏂圭櫥褰� + * @param source 绗笁鏂圭櫥褰曠被鍨� + * */ +export function socialLogin(source: string, tenantId: string, code: any, state: any): AxiosPromise<any> { + const data = { + socialCode: code, + socialState: state, + source, + tenantId, + clientId: 'e5cd7e4891bf95d1d19206ce24a7b32e', + grantType: 'social' + }; + return request({ + url: '/auth/social-login', + method: 'post', + data: data + }); +} // 鑾峰彇鐢ㄦ埛璇︾粏淇℃伅 export function getInfo(): AxiosPromise<UserInfo> { -- Gitblit v1.9.3