二期:保存用户不成功的问题 #143

Merged
zhuhao merged 1 commits from zhuhao_dev into main 2024-08-16 09:11:51 +08:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit b8896bf53d - Show all commits

View File

@ -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('修改成功')