修改密码

This commit is contained in:
2020-11-11 17:37:03 +08:00
parent da50f3a8dc
commit 26b815e046
2 changed files with 5 additions and 1 deletions

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