mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-16 22:36:43 +08:00
修改用户中心接口,头像修改,个性签名修改
This commit is contained in:
@@ -519,6 +519,16 @@
|
||||
this.form.sign = this.signData.sign;
|
||||
this.signData.isEdit = false;
|
||||
this.checkAndSendFinish();
|
||||
let upinfo={
|
||||
aid:this.userInfo.aid,
|
||||
sign:this.signData.sign,
|
||||
avatar:''
|
||||
}
|
||||
apiUserBasic.updateUser(upinfo).then(rs=>{
|
||||
if(rs.status!=200){
|
||||
console.error('更新用户中心用户像头失败');
|
||||
}
|
||||
})
|
||||
} else {
|
||||
this.$message.error('保存失败:'+res.message);
|
||||
}
|
||||
@@ -658,6 +668,17 @@
|
||||
this.$message.success("保存图片成功")
|
||||
this.dialogVisibleAvatar=false;
|
||||
this.checkAndSendFinish();
|
||||
//同步保存到用户中心的数据库
|
||||
let upinfo={
|
||||
aid:this.userInfo.aid,
|
||||
sign:'',
|
||||
avatar:this.form.account.avatar
|
||||
}
|
||||
apiUserBasic.updateUser(upinfo).then(rs=>{
|
||||
if(rs.status!=200){
|
||||
console.error('更新用户中心用户像头失败');
|
||||
}
|
||||
})
|
||||
}else{
|
||||
this.$message.error("保存图片失败")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user