修改头像和昵称
This commit is contained in:
@@ -58,7 +58,7 @@
|
||||
//获取头像昵称
|
||||
getUser() {
|
||||
this.$apiServe.getUser().then(res => {
|
||||
console.log('头像昵称', res.data);
|
||||
// console.log('头像昵称', res.data);
|
||||
var data = res.data.data
|
||||
this.avatar = data.avatar
|
||||
this.model.userInfo.name = data.nickname
|
||||
@@ -104,8 +104,6 @@
|
||||
},
|
||||
//提交头像和昵称
|
||||
handleSubmit() {
|
||||
console.log('昵称', this.model.userInfo.name);
|
||||
console.log('头像', this.avatarUrl);
|
||||
this.$apiServe.updateUser({
|
||||
nickname: this.model.userInfo.name,
|
||||
avatar: this.avatarUrl
|
||||
|
||||
Reference in New Issue
Block a user