修改密码

This commit is contained in:
luyuan 2020-11-11 17:37:03 +08:00
parent da50f3a8dc
commit 26b815e046
Signed by: theluyuan
GPG Key ID: A7972FD973317FF3
2 changed files with 5 additions and 1 deletions

View File

@ -444,7 +444,7 @@ export async function editpassword(data?: any): Promise<any> {
}
newdata.memberid=data.memberid
newdata.password=data.password
newdata.topassword=data.repassword
newdata.topassword=data.topassword
console.log(newdata)
const res = await post<Liveaddrule>('resetPassword',newdata)
if(res.code==0){

View File

@ -753,11 +753,14 @@ export default defineComponent({
original?: string;
password?: string;
topassword?: string;
memberid?: number;
}
const passwordForm: PassWord = reactive({
original: "",
password: "",
topassword: "",
memberid:0
});
/**
* 密码对话框清空数据
@ -781,6 +784,7 @@ export default defineComponent({
* @return { void }
*/
function updateUserPassword(): void {
passwordForm.memberid = userinfo.value.memberid
console.log(toRaw(passwordForm));
if (
toRaw(passwordForm).password === toRaw(passwordForm).topassword