请求接口
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user