diff --git a/src/api/index.ts b/src/api/index.ts index 602c62c..069904e 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -444,7 +444,7 @@ export async function editpassword(data?: any): Promise { } newdata.memberid=data.memberid newdata.password=data.password - newdata.topassword=data.repassword + newdata.topassword=data.topassword console.log(newdata) const res = await post('resetPassword',newdata) if(res.code==0){ diff --git a/src/views/mine/Archives.vue b/src/views/mine/Archives.vue index eed3ab5..8d80e09 100644 --- a/src/views/mine/Archives.vue +++ b/src/views/mine/Archives.vue @@ -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