diff --git a/src/api/index.ts b/src/api/index.ts index c1abdf8..9a70132 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -1203,3 +1203,12 @@ export async function authLogin(id:number, type: number, img: string = "") { message.error(res.msg); } } + +export async function accessToken(code:string) { + const res = await get("accessToken", {code}) + if(res.code == 0){ + return res.data + }else{ + message.error(res.msg); + } +} diff --git a/src/views/login/wblogin.vue b/src/views/login/wblogin.vue index ca6356d..c25537d 100644 --- a/src/views/login/wblogin.vue +++ b/src/views/login/wblogin.vue @@ -5,6 +5,7 @@ \ No newline at end of file