mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-09-23 18:57:09 +08:00
refactor: 完善登录页面其他登录方式
This commit is contained in:
@@ -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}`)
|
||||
}
|
@@ -51,3 +51,8 @@ export interface AccountLoginReq {
|
||||
export interface LoginResp {
|
||||
token: string
|
||||
}
|
||||
|
||||
// 第三方登录授权类型
|
||||
export interface SocialAuthAuthorizeResp {
|
||||
authorizeUrl: string;
|
||||
}
|
Reference in New Issue
Block a user