提交修改

This commit is contained in:
lmj
2022-10-10 19:45:12 +08:00
parent f41bf46b6d
commit 254666382e
2 changed files with 14 additions and 5 deletions

View File

@@ -50,6 +50,7 @@
this.userName=this.name;
if(this.avatar && this.avatar!=''){
this.userAvatar=this.avatar;
}
this.usersex = this.sex;
},
@@ -64,8 +65,14 @@
this.userName=newVal;
},
avatar(newVal,oldVal){
console.log(newVal,'222')
if(newVal){
this.userAvatar=this.baseUrl+newVal;
if(newVal.startWith('http')){
this.userAvatar=newVal;
}else{
this.userAvatar=this.baseUrl+newVal;
}
}
},
sex(newVal,oldVal){