From 2b7ffdf19c0e525f03dc6234b58cac03b627f0a5 Mon Sep 17 00:00:00 2001 From: thiszhc <2029364173@qq.com> Date: 星期六, 01 七月 2023 02:26:58 +0800 Subject: [PATCH] 前端实现切换租户选择第三方授权登录,和优化第三方页面登录注册 --- src/api/login.ts | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/api/login.ts b/src/api/login.ts index 9903f5b..f60406c 100644 --- a/src/api/login.ts +++ b/src/api/login.ts @@ -66,11 +66,15 @@ * 绗笁鏂圭櫥褰� * @param source 绗笁鏂圭櫥褰曠被鍨� * */ -export function socialLogin(source: string, code: any, state: any): AxiosPromise<any> { +export function socialLogin(source: string, tenantId: string, loginType: string, code: any, state: any): AxiosPromise<any> { const data = { code, state, - source + source, + tenantId, + loginType, + clientId: 'e5cd7e4891bf95d1d19206ce24a7b32e', + grantType: 'social' }; return request({ url: '/auth/social-login', -- Gitblit v1.9.3