前端实现切换租户选择第三方授权登录,和优化第三方页面登录注册

This commit is contained in:
thiszhc
2023-07-01 02:26:58 +08:00
parent db6e95bb96
commit 2b7ffdf19c
4 changed files with 39 additions and 13 deletions

View File

@ -66,11 +66,15 @@ export function getCodeImg(): AxiosPromise<VerifyCodeResult> {
* 第三方登录
* @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',