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