失败不关闭
This commit is contained in:
parent
8ae53fc45b
commit
627704bc4b
@ -450,11 +450,13 @@ export async function editpassword(data?: any): Promise<any> {
|
|||||||
const res = await put<Liveaddrule>('/member/' + data.memberid,newdata)
|
const res = await put<Liveaddrule>('/member/' + data.memberid,newdata)
|
||||||
if(res.code==0){
|
if(res.code==0){
|
||||||
message.success("修改成功")
|
message.success("修改成功")
|
||||||
|
return false
|
||||||
|
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
message.error(res.msg)
|
message.error(res.msg)
|
||||||
|
return true
|
||||||
}
|
}
|
||||||
return res
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -807,16 +807,16 @@ export default defineComponent({
|
|||||||
* 修改密码
|
* 修改密码
|
||||||
* @return { void }
|
* @return { void }
|
||||||
*/
|
*/
|
||||||
function updateUserPassword(): void {
|
async function updateUserPassword(): Promise<void> {
|
||||||
passwordForm.memberid = userinfo.value.memberid
|
passwordForm.memberid = userinfo.value.memberid
|
||||||
console.log(toRaw(passwordForm));
|
console.log(toRaw(passwordForm));
|
||||||
if (
|
if (
|
||||||
toRaw(passwordForm).password === toRaw(passwordForm).topassword
|
toRaw(passwordForm).password === toRaw(passwordForm).topassword
|
||||||
) {
|
) {
|
||||||
if (toRaw(passwordForm).original != "") {
|
if (toRaw(passwordForm).original != "") {
|
||||||
// console.log(toRaw(passwordForm).password);
|
// console.log(toRaw(passwordForm).password);
|
||||||
editpassword(toRaw(passwordForm));
|
const res = await editpassword(toRaw(passwordForm));
|
||||||
togglePasswordModal(false);
|
togglePasswordModal(res);
|
||||||
} else {
|
} else {
|
||||||
message.error(lan.$t('yuanmimaweikong'));
|
message.error(lan.$t('yuanmimaweikong'));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user