修改密码
This commit is contained in:
parent
da50f3a8dc
commit
26b815e046
@ -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){
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user