修改密码 #131
@ -438,18 +438,20 @@ export async function transactioninfo(data?: any){
|
|||||||
export async function editpassword(data?: any): Promise<any> {
|
export async function editpassword(data?: any): Promise<any> {
|
||||||
console.log(data,111)
|
console.log(data,111)
|
||||||
const newdata={
|
const newdata={
|
||||||
memberid:0,
|
password:"",
|
||||||
password: "",
|
newpassword: "",
|
||||||
topassword: ""
|
topassword: ""
|
||||||
}
|
}
|
||||||
newdata.memberid=data.memberid
|
newdata.password = data.original
|
||||||
newdata.password=data.password
|
newdata.newpassword=data.password
|
||||||
newdata.topassword=data.topassword
|
newdata.topassword=data.topassword
|
||||||
console.log(newdata)
|
console.log(newdata)
|
||||||
const res = await post<Liveaddrule>('resetPassword',newdata)
|
const res = await put<Liveaddrule>('/member/' + data.memberid,newdata)
|
||||||
if(res.code==0){
|
if(res.code==0){
|
||||||
message.success("修改成功")
|
message.success("修改成功")
|
||||||
|
|
||||||
|
}else{
|
||||||
|
message.error(res.msg)
|
||||||
}
|
}
|
||||||
return res
|
return res
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user