修复了登录
This commit is contained in:
parent
8575d2dcac
commit
ac4b1b4ea9
@ -13,13 +13,13 @@ import { del, get, post, put, setToken } from './base'
|
||||
*/
|
||||
|
||||
export async function loginpass(phone: string, password: string,type?: number,smscode?: string){
|
||||
let newdata={}
|
||||
let newdata: any = {}
|
||||
if(type==1){
|
||||
newdata={type:type?type:2,username: phone, smscode: smscode}
|
||||
}else{
|
||||
newdata={type:type?type:2,username: phone, password: password}
|
||||
}
|
||||
|
||||
newdata.logintype = 1;
|
||||
const res = await post<LoginData>("login",newdata);
|
||||
console.log(res.code)
|
||||
if(res.code == 1){
|
||||
|
Loading…
Reference in New Issue
Block a user