diff --git a/src/renderer/src/views/profile/userInfo.vue b/src/renderer/src/views/profile/userInfo.vue index de7ea81..98dcd52 100644 --- a/src/renderer/src/views/profile/userInfo.vue +++ b/src/renderer/src/views/profile/userInfo.vue @@ -129,7 +129,7 @@ function submit() { props.user.avatar = userStore.user.avatar updateUserInfo(props.user).then((response) => { if(response.code == 200){ - userStore.login({username:props.user.phonenumber,password:props.user.plainpwd}).then(() => { + userStore.login({username:props.user.userName,password:props.user.plainpwd}).then(() => { userStore.getInfo().then(res => { if(res.code === 200){ ElMessage.success('修改成功')