mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-18 23:36:44 +08:00
Merge remote-tracking branch 'origin/cloud' into dev0731
This commit is contained in:
@@ -99,7 +99,7 @@
|
||||
if (valid) {
|
||||
this.$store.dispatch("Login", this.form).then(rs => {
|
||||
if(rs.status == 200){
|
||||
// 记住密码
|
||||
//记住密码
|
||||
localStorage.setItem(this.$xpage.constants.newLoginKey,1);
|
||||
if(this.rememberMe){
|
||||
let rememberMeOjb = {rememberMe:true,loginName:this.form.loginName,password:this.form.password};
|
||||
|
||||
@@ -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