|
|
@ -618,7 +618,6 @@ |
|
|
|
let rawData = JSON.parse(res.rawData) |
|
|
|
let rawData = JSON.parse(res.rawData) |
|
|
|
this.userInfo.avatar_url = rawData.avatarUrl; |
|
|
|
this.userInfo.avatar_url = rawData.avatarUrl; |
|
|
|
this.userInfo.nick_name = rawData.nickName; |
|
|
|
this.userInfo.nick_name = rawData.nickName; |
|
|
|
console.log("用户信息", JSON.parse(res.rawData)) |
|
|
|
|
|
|
|
if (rawData) { |
|
|
|
if (rawData) { |
|
|
|
that.headImgUpload(rawData.avatarUrl, rawData.nickName) |
|
|
|
that.headImgUpload(rawData.avatarUrl, rawData.nickName) |
|
|
|
} else { |
|
|
|
} else { |
|
|
@ -628,7 +627,7 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
nickSubmit(avatar_id,nick_name) { |
|
|
|
nickSubmit(avatar_id, nick_name) { |
|
|
|
UserApi.editUser({ |
|
|
|
UserApi.editUser({ |
|
|
|
avatar_id: avatar_id, |
|
|
|
avatar_id: avatar_id, |
|
|
|
nick_name: nick_name |
|
|
|
nick_name: nick_name |
|
|
|