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 @@ export function getCodeImg(): AxiosPromise { * 第三方登录 * @param source 第三方登录类型 * */ -export function socialLogin(source: string, code: any, state: any): AxiosPromise { +export function socialLogin(source: string, tenantId: string, loginType: string, code: any, state: any): AxiosPromise { const data = { code, state, - source + source, + tenantId, + loginType, + clientId: 'e5cd7e4891bf95d1d19206ce24a7b32e', + grantType: 'social' }; return request({ url: '/auth/social-login', diff --git a/src/layout/components/SocialLogin/index.vue b/src/layout/components/SocialLogin/index.vue index 127007b..82fb253 100644 --- a/src/layout/components/SocialLogin/index.vue +++ b/src/layout/components/SocialLogin/index.vue @@ -3,11 +3,14 @@