修改密码 #131

Merged
theluyuan merged 1 commits from xbx into master 2020-11-12 17:14:09 +08:00
Showing only changes of commit 0d29e223e6 - Show all commits

View File

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