From 2b7ffdf19c0e525f03dc6234b58cac03b627f0a5 Mon Sep 17 00:00:00 2001 From: thiszhc <2029364173@qq.com> Date: Sat, 1 Jul 2023 02:26:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E7=AB=AF=E5=AE=9E=E7=8E=B0=E5=88=87?= =?UTF-8?q?=E6=8D=A2=E7=A7=9F=E6=88=B7=E9=80=89=E6=8B=A9=E7=AC=AC=E4=B8=89?= =?UTF-8?q?=E6=96=B9=E6=8E=88=E6=9D=83=E7=99=BB=E5=BD=95=EF=BC=8C=E5=92=8C?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=AC=AC=E4=B8=89=E6=96=B9=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E6=B3=A8=E5=86=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/login.ts | 8 +++++-- src/layout/components/SocialLogin/index.vue | 26 +++++++++++++++------ src/router/index.ts | 1 + src/views/login.vue | 17 ++++++++++---- 4 files changed, 39 insertions(+), 13 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 @@ 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 @@