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> {