Commit d8025a10 by 宋冰琦

修复头像授权昵称修改问题

parent 040ba831
......@@ -164,7 +164,7 @@ export default {
this.userInfo.avatarUrl = avatarUrl
this.userInfo.sex = sex?sex?1:0:gender
this.userInfo.name = userName?userName:nickName
this.userInfo.name = nickName
this.userInfo.phone = phone.substr(0,3) + "****" + phone.substr(7)
const {...result} = this.userInfoStorage
......@@ -209,10 +209,10 @@ export default {
const {userInfo} = res
const Info = {
avatarUrl:userInfo.avatarUrl,
// nickName:userInfo.nickName
nickName:userInfo.nickName
}
this.userInfo.avatarUrl = Info.avatarUrl
// this.userInfo.name = Info.nickName
this.userInfo.name = Info.nickName
this.save(false)
}
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment