This commit is contained in:
2020-11-30 14:15:11 +08:00
parent b203a4fc6b
commit dae8717341
3 changed files with 18 additions and 3 deletions

View File

@@ -1187,4 +1187,18 @@ export async function setusername(src: string){
export async function logoutapi() {
await get("logout");
}
}
export async function authLogin(id:number, type: number, img: string = "") {
const res = await post("authLogin",{
uid: id,
type: 1,
login_type: type,
img: img
})
if(res.code == 0){
return res.data
}else{
message.error(res.msg);
}
}