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