修改密码

This commit is contained in:
luyuan 2020-11-12 17:13:38 +08:00
parent d51732f348
commit 0d29e223e6
Signed by: theluyuan
GPG Key ID: A7972FD973317FF3

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
}