diff --git a/src/apis/auth/index.ts b/src/apis/auth/index.ts index e600191..399c8a3 100644 --- a/src/apis/auth/index.ts +++ b/src/apis/auth/index.ts @@ -22,3 +22,8 @@ export const getUserInfo = () => { export const getUserRoute = () => { return http.get(`${BASE_URL}/route`) } + +/** @desc 第三方登录授权 */ +export function socialAuth(source: string) { + return http.get(`/oauth/${source}`) +} \ No newline at end of file diff --git a/src/apis/auth/type.ts b/src/apis/auth/type.ts index 05b29f4..1ef2cd3 100644 --- a/src/apis/auth/type.ts +++ b/src/apis/auth/type.ts @@ -51,3 +51,8 @@ export interface AccountLoginReq { export interface LoginResp { token: string } + +// 第三方登录授权类型 +export interface SocialAuthAuthorizeResp { + authorizeUrl: string; +} \ No newline at end of file diff --git a/src/views/home/components/WorkCard.vue b/src/views/home/components/WorkCard.vue index 90a0a8e..f64cd4b 100644 --- a/src/views/home/components/WorkCard.vue +++ b/src/views/home/components/WorkCard.vue @@ -39,7 +39,6 @@ const userStore = useUserStore() } .card { - margin-top: $margin; .content { padding: 8px 20px; .welcome { diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 0bf8de9..896e916 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -50,13 +50,24 @@ 登录 + - - + +