refactor: 完善登录页面其他登录方式

This commit is contained in:
2024-04-17 21:04:52 +08:00
parent c0007c33dc
commit 287c667d68
4 changed files with 51 additions and 4 deletions

View File

@@ -22,3 +22,8 @@ export const getUserInfo = () => {
export const getUserRoute = () => {
return http.get<Auth.RouteItem[]>(`${BASE_URL}/route`)
}
/** @desc 第三方登录授权 */
export function socialAuth(source: string) {
return http.get<Auth.SocialAuthAuthorizeResp>(`/oauth/${source}`)
}

View File

@@ -51,3 +51,8 @@ export interface AccountLoginReq {
export interface LoginResp {
token: string
}
// 第三方登录授权类型
export interface SocialAuthAuthorizeResp {
authorizeUrl: string;
}