xbx #139

Merged
theluyuan merged 12 commits from xbx into master 2020-11-20 03:19:16 +00:00
2 changed files with 7 additions and 5 deletions
Showing only changes of commit 627704bc4b - Show all commits

View File

@ -450,11 +450,13 @@ export async function editpassword(data?: any): Promise<any> {
const res = await put<Liveaddrule>('/member/' + data.memberid,newdata)
if(res.code==0){
message.success("修改成功")
return false
}else{
message.error(res.msg)
return true
}
return res
}
/**

View File

@ -807,16 +807,16 @@ export default defineComponent({
* 修改密码
* @return { void }
*/
function updateUserPassword(): void {
async function updateUserPassword(): Promise<void> {
passwordForm.memberid = userinfo.value.memberid
console.log(toRaw(passwordForm));
if (
toRaw(passwordForm).password === toRaw(passwordForm).topassword
toRaw(passwordForm).password === toRaw(passwordForm).topassword
) {
if (toRaw(passwordForm).original != "") {
// console.log(toRaw(passwordForm).password);
editpassword(toRaw(passwordForm));
togglePasswordModal(false);
const res = await editpassword(toRaw(passwordForm));
togglePasswordModal(res);
} else {
message.error(lan.$t('yuanmimaweikong'));
}