mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-21 08:46:44 +08:00
个人主页,感兴趣的人头像显示问题
This commit is contained in:
@@ -49,10 +49,13 @@
|
||||
mounted() {
|
||||
this.userName=this.name;
|
||||
if(this.avatar){
|
||||
this.userAvatar=this.avatar;
|
||||
if(this.avatar.startsWith('http')){
|
||||
this.userAvatar=this.avatar;
|
||||
}else{
|
||||
this.userAvatar=this.baseUrl+this.avatar;
|
||||
}
|
||||
}
|
||||
this.usersex = this.sex;
|
||||
console.log(this.userAvatar,"this.userAvatar newVal");
|
||||
},
|
||||
methods:{
|
||||
toHome() {
|
||||
@@ -65,14 +68,12 @@
|
||||
this.userName=newVal;
|
||||
},
|
||||
avatar(newVal,oldVal){
|
||||
console.log(newVal,"this.userAvatar newVal");
|
||||
if(newVal){
|
||||
if(newVal.startsWith('http')){
|
||||
this.userAvatar=newVal;
|
||||
}else{
|
||||
this.userAvatar=this.baseUrl+newVal;
|
||||
}
|
||||
|
||||
}
|
||||
},
|
||||
aid(newVal,oldVal){
|
||||
|
||||
Reference in New Issue
Block a user